Skip to content

Instantly share code, notes, and snippets.

@clstokes
Created May 18, 2015 20:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
terraform variables and split function
variable "subnet_cidr_blocks" {
default = "192.168.0.0/24,192.168.1.0/24,192.168.2.0/24"
}
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