-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved infrastructure to Frankfurt region
- Loading branch information
Valentin Khramtsov
committed
Aug 16, 2024
1 parent
2a09801
commit b5b26a0
Showing
18 changed files
with
1,095 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
terragrunt/ACCOUNT_ID/eu-central-1/demo/common/aws-acm/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
terragrunt/ACCOUNT_ID/eu-central-1/demo/common/aws-acm/terragrunt.hcl
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,48 @@ | ||
include "root" { | ||
path = find_in_parent_folders() | ||
expose = true | ||
} | ||
|
||
include "env" { | ||
path = find_in_parent_folders("env.hcl") | ||
expose = true | ||
} | ||
|
||
dependency "r53" { | ||
config_path = "../aws-r53" | ||
|
||
mock_outputs_allowed_terraform_commands = ["init", "validate", "plan", "destroy"] | ||
|
||
mock_outputs = { | ||
route53_zone_id = "ZZZZ0ZZZ" | ||
} | ||
} | ||
|
||
generate "providers_versions" { | ||
path = "versions.tf" | ||
if_exists = "overwrite" | ||
contents = <<EOF | ||
terraform { | ||
required_version = ">= 1.8.3" | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "${include.root.locals.tf_providers.aws}" | ||
} | ||
} | ||
} | ||
EOF | ||
} | ||
|
||
terraform { | ||
source = "${get_path_to_repo_root()}/terraform//modules/aws-acm" | ||
} | ||
|
||
inputs = { | ||
name = include.env.locals.name | ||
domain_name = include.env.locals.values.domain_name | ||
create_acm_certificate = include.env.locals.values.create_acm_certificate | ||
zone_id = dependency.r53.outputs.route53_zone_id | ||
} | ||
|
133 changes: 133 additions & 0 deletions
133
terragrunt/ACCOUNT_ID/eu-central-1/demo/common/aws-eks/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
60 changes: 60 additions & 0 deletions
60
terragrunt/ACCOUNT_ID/eu-central-1/demo/common/aws-eks/terragrunt.hcl
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,60 @@ | ||
include "root" { | ||
path = find_in_parent_folders() | ||
expose = true | ||
} | ||
|
||
include "env" { | ||
path = find_in_parent_folders("env.hcl") | ||
expose = true | ||
} | ||
|
||
dependency "vpc" { | ||
config_path = "../aws-vpc" | ||
|
||
mock_outputs_allowed_terraform_commands = ["init", "validate", "plan", "destroy"] | ||
|
||
mock_outputs = { | ||
vpc_id = "vpc-0f5b1b5f788888888" | ||
vpc_cidr = "10.0.0.0/16" | ||
vpc_private_subnets = ["10.0.0.0/16"] | ||
vpc_public_subnets = ["10.0.0.0/16"] | ||
vpc_intra_subnets = ["10.0.0.0/16"] | ||
} | ||
} | ||
|
||
generate "providers_versions" { | ||
path = "versions.tf" | ||
if_exists = "overwrite" | ||
contents = <<EOF | ||
terraform { | ||
required_version = ">= 1.8.3" | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "${include.root.locals.tf_providers.aws}" | ||
} | ||
kubernetes = { | ||
source = "hashicorp/kubernetes" | ||
version = "${include.root.locals.tf_providers.kubernetes}" | ||
} | ||
} | ||
} | ||
EOF | ||
} | ||
|
||
terraform { | ||
source = "${get_path_to_repo_root()}/terraform//modules/aws-eks" | ||
} | ||
|
||
inputs = { | ||
name = include.env.locals.name | ||
env = include.env.locals.values.environment | ||
region = include.env.locals.values.region | ||
eks_cluster_version = include.env.locals.values.eks_cluster_version | ||
|
||
vpc_id = dependency.vpc.outputs.vpc_id | ||
private_subnets = dependency.vpc.outputs.vpc_private_subnets | ||
public_subnets = dependency.vpc.outputs.vpc_public_subnets | ||
intra_subnets = dependency.vpc.outputs.vpc_intra_subnets | ||
} |
26 changes: 26 additions & 0 deletions
26
terragrunt/ACCOUNT_ID/eu-central-1/demo/common/aws-r53/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
terragrunt/ACCOUNT_ID/eu-central-1/demo/common/aws-r53/terragrunt.hcl
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,36 @@ | ||
include "root" { | ||
path = find_in_parent_folders() | ||
expose = true | ||
} | ||
|
||
include "env" { | ||
path = find_in_parent_folders("env.hcl") | ||
expose = true | ||
} | ||
|
||
generate "providers_versions" { | ||
path = "versions.tf" | ||
if_exists = "overwrite" | ||
contents = <<EOF | ||
terraform { | ||
required_version = ">= 1.8.3" | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "${include.root.locals.tf_providers.aws}" | ||
} | ||
} | ||
} | ||
EOF | ||
} | ||
|
||
terraform { | ||
source = "${get_path_to_repo_root()}/terraform//modules/aws-r53" | ||
} | ||
|
||
inputs = { | ||
name = include.env.locals.name | ||
domain_name = include.env.locals.values.domain_name | ||
create_r53_zone = include.env.locals.values.create_r53_zone | ||
} |
26 changes: 26 additions & 0 deletions
26
terragrunt/ACCOUNT_ID/eu-central-1/demo/common/aws-vpc/.terraform.lock.hcl
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
terragrunt/ACCOUNT_ID/eu-central-1/demo/common/aws-vpc/terragrunt.hcl
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,37 @@ | ||
include "root" { | ||
path = find_in_parent_folders() | ||
expose = true | ||
} | ||
|
||
include "env" { | ||
path = find_in_parent_folders("env.hcl") | ||
expose = true | ||
} | ||
|
||
generate "providers_versions" { | ||
path = "versions.tf" | ||
if_exists = "overwrite" | ||
contents = <<EOF | ||
terraform { | ||
required_version = ">= 1.8.3" | ||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "${include.root.locals.tf_providers.aws}" | ||
} | ||
} | ||
} | ||
EOF | ||
} | ||
|
||
terraform { | ||
source = "${get_path_to_repo_root()}/terraform//modules/aws-vpc" | ||
} | ||
|
||
inputs = { | ||
name = include.env.locals.name | ||
cidr = include.env.locals.values.vpc_cidr | ||
azs = include.env.locals.values.azs | ||
single_nat_gateway = include.env.locals.values.single_nat_gateway | ||
} |
Oops, something went wrong.