-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from blockscout/some-microservices
Some microservices
- Loading branch information
Showing
14 changed files
with
573 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
File renamed without changes.
Oops, something went wrong.