Skip to content

Commit

Permalink
Moved infrastructure to Frankfurt region
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Khramtsov committed Aug 16, 2024
1 parent 2a09801 commit b5b26a0
Show file tree
Hide file tree
Showing 18 changed files with 1,095 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
}
Loading

0 comments on commit b5b26a0

Please sign in to comment.