Last active
August 17, 2020 06:43
-
-
Save baiyongzhen/b451d504012e16d38e8221d2dfd5e5fd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| locals { | |
| my_region = "eu-west-1" | |
| my_env = "dev" | |
| my_prefix = "terraform" | |
| vpc_cidr_block = "10.20.0.0/16" | |
| private_subnet_count = "2" | |
| } | |
| terraform { | |
| required_version = ">=0.11.11" | |
| backend "s3" { | |
| bucket = "terraform-backends" | |
| key = "demo/dev/terraform.tfstate" | |
| region = "eu-west-1" | |
| dynamodb_table = "erraform-backends" | |
| profile = "demo" | |
| } | |
| } | |
| provider "aws" { | |
| region = "${local.my_region}" | |
| } | |
| module "env-def" { | |
| source = "..\/..\/modules\/env-def" | |
| prefix = "${local.my_prefix}" | |
| env = "${local.my_env}" | |
| region = "${local.my_region}" | |
| vpc_cidr_block = "${local.vpc_cidr_block}" | |
| private_subnet_count = "${local.private_subnet_count}" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment