Skip to content

Commit

Permalink
Merge pull request #6 from blockscout/some-microservices
Browse files Browse the repository at this point in the history
Some microservices
  • Loading branch information
MicleMaslow authored Mar 29, 2023
2 parents 7406871 + ae7029a commit 4d41cdc
Show file tree
Hide file tree
Showing 14 changed files with 573 additions and 153 deletions.
39 changes: 39 additions & 0 deletions .header.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Module for deploy blockscout to AWS
Examples:
New vpc and deploy database rds:
```
locals {
region = "us-east-1"
tags = {
terraform_managed = true
project = "blockscout-supernet"
}
}
module "vpc" {
source = "./aws"
vpc_name = "name"
ssl_certificate_arn = "<arn>"
deploy_ec2_instance_db = false
deploy_rds_db = true
tags = local.tags
}
```
!!! For work with existed vpc needs a subnet group: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Subnets
Existed vpc and deploy database rds:
```
locals {
region = "us-east-1"
tags = {
terraform_managed = true
project = "blockscout-supernet"
}
}
module "vpc" {
source = "./aws"
existed_vpc_id = "vpc-05626****"
existed_private_subnets_ids = ["subnet-*", "subnet-*", "subnet-*"]
existed_public_subnets_ids = ["subnet-*", "subnet-*", "subnet-*"]
existed_rds_subnet_group_name = "<name>"
ssl_certificate_arn = "<arn>"
}
```
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
fail_fast: false
minimum_pre_commit_version: "2.6.0"
repos:
-
repo: https://github.com/aws-ia/pre-commit-configs
# To update run:
# pre-commit autoupdate --freeze
rev: v1.6.2
hooks:
- id: aws-ia-meta-hook
21 changes: 21 additions & 0 deletions .terraform-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
formatter: markdown
header-from: .header.md
settings:
anchor: true
color: true
default: true
escape: true
html: true
indent: 2
required: true
sensitive: true
type: true
lockfile: false

sort:
enabled: true
by: required

output:
file: README.md
mode: replace
66 changes: 66 additions & 0 deletions .tflint.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/module-inspection.md
# borrowed & modified indefinitely from https://github.com/ksatirli/building-infrastructure-you-can-mostly-trust/blob/main/.tflint.hcl

plugin "aws" {
enabled = true
version = "0.22.1"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}

config {
module = true
force = false
}

rule "terraform_required_providers" {
enabled = true
}

rule "terraform_required_version" {
enabled = true
}

rule "terraform_naming_convention" {
enabled = true
format = "snake_case"
}

rule "terraform_typed_variables" {
enabled = true
}

rule "terraform_unused_declarations" {
enabled = true
}

rule "terraform_comment_syntax" {
enabled = true
}

rule "terraform_deprecated_index" {
enabled = true
}

rule "terraform_deprecated_interpolation" {
enabled = true
}

rule "terraform_documented_outputs" {
enabled = true
}

rule "terraform_documented_variables" {
enabled = true
}

rule "terraform_module_pinned_source" {
enabled = true
}

rule "terraform_standard_module_structure" {
enabled = true
}

rule "terraform_workspace_remote" {
enabled = true
}
82 changes: 58 additions & 24 deletions README.md

Large diffs are not rendered by default.

File renamed without changes.
Loading

0 comments on commit 4d41cdc

Please sign in to comment.