Skip to content

Instantly share code, notes, and snippets.

@downspot
Created April 16, 2019 19:33
Show Gist options
  • Save downspot/c6f5686255465d1507e2bff30214cd28 to your computer and use it in GitHub Desktop.
Save downspot/c6f5686255465d1507e2bff30214cd28 to your computer and use it in GitHub Desktop.
terraform bad subnet removal hack
"${element(split(",", replace(replace(replace(replace(join(",", data.aws_subnet_ids.private.ids), "/subnet-ca201abd,/", ""), "/subnet-fc0870c1,/", ""), "/subnet-6630da5b/", ""), "/subnet-3f35c402,/", "")), count.index)}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment