Created
May 18, 2015 20:23
-
-
Save clstokes/5a107c30f88eac4057de to your computer and use it in GitHub Desktop.
terraform variables and split function
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
variable "subnet_cidr_blocks" { | |
default = "192.168.0.0/24,192.168.1.0/24,192.168.2.0/24" | |
} |
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_public" { | |
cidr_block = "${split(",",var.subnet_cidr_blocks)}" | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment