Created
September 16, 2019 03:35
-
-
Save KyMidd/e5e9b65ea0cbd5e70643da9bdc95c841 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
| resource "aws_subnet" "subnet" { | |
| count = length(var.subnet_addresses) | |
| vpc_id = var.vpc_id | |
| cidr_block = element(var.subnet_addresses, count.index) | |
| tags = { | |
| Terraform = "true" | |
| Name = "${var.subnet_group}Subnet${count.index + 1}" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment