diff --git a/.gitignore b/.gitignore index 8af2821..488186e 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,6 @@ terraform.rc # Ignore .env folder **/.env/* **/test/* + +# Ignore gomplate generated .tf files +**/workloads/*/*.tf diff --git a/aws/acb/.gomplate.yaml b/aws/acb/.gomplate.yaml new file mode 100644 index 0000000..40b75ea --- /dev/null +++ b/aws/acb/.gomplate.yaml @@ -0,0 +1,8 @@ +--- +inputDir: ../../tmpl/ +outputMap: '{{ .in | strings.TrimSuffix ".tmpl" | printf "%s" }}' +datasources: + config: + url: .vars.yaml + +# gomplate --config .gomplate.yaml diff --git a/aws/acb/.terraform.lock.hcl b/aws/acb/.terraform.lock.hcl new file mode 100644 index 0000000..852b873 --- /dev/null +++ b/aws/acb/.terraform.lock.hcl @@ -0,0 +1,19 @@ +# This file is maintained automatically by "tofu init". +# Manual edits may be lost in future updates. + +provider "registry.opentofu.org/hashicorp/aws" { + version = "6.0.0" + constraints = ">= 5.46.0, 6.0.0" + hashes = [ + "h1:F7kc3XB2ssSExi7YIpkAvJsHHYypBXeNZ2LzKPX5ZLg=", + "zh:44c81d55a1844333a50fb36dd51938201fbd4e8a3da71880c7df11bc0eaa251a", + "zh:4d206f13982f539704998c76c2083bdb95f63c9a4d3ac8b4d2d152c4d874efca", + "zh:5e5e6b4cf921abf55c69b7ed33450a98de8bed611082c4272e9bba81a965d81c", + "zh:5fe449164de2f3507bada48e94dc07e192e24b644ebdb431fcd4e09168cab46c", + "zh:66efb8c840cedc830dee28994040d84eb74c353b97e86a33874f22471ec21deb", + "zh:b1e93ddf1557c84ddddba2a67ef908de2ac75414af7d0cc7f9cef86401c36a71", + "zh:b850aa20bdc8d63dca39f7b3f6b313649a28a78f66a9f79ef24f2a9b6c9b2247", + "zh:e58ace0225a8750d82f557bd54225898a784783dae6a378fcb7fffcf7b589315", + "zh:ffcadc0505dd7510f3fb14df5e4b33c2786df8039a902f0fcd2cdca81514b282", + ] +} diff --git a/aws/acb/.vars.yaml b/aws/acb/.vars.yaml new file mode 100644 index 0000000..36062ee --- /dev/null +++ b/aws/acb/.vars.yaml @@ -0,0 +1,6 @@ +--- +vpc: + version: "v5.17.0" + cidr: "10.80.0.0/16" + enable_nat_gateway: true + single_nat_gateway: true diff --git a/aws/acb/terragrunt.hcl b/aws/acb/terragrunt.hcl new file mode 100644 index 0000000..b4cba33 --- /dev/null +++ b/aws/acb/terragrunt.hcl @@ -0,0 +1,3 @@ +include "root" { + path = find_in_parent_folders() +} \ No newline at end of file diff --git a/aws/terragrunt.hcl b/aws/terragrunt.hcl new file mode 100644 index 0000000..1303c44 --- /dev/null +++ b/aws/terragrunt.hcl @@ -0,0 +1,33 @@ +generate "provider" { + path = "provider.tf" + if_exists = "overwrite" + contents = <