Hi,
Is there a way with terraform to deploy an EC2 instance to more than one AZ in a region concurrently?
Any help/best practice appreciated.
Kind regards
Sean.
Is there a way with terraform to deploy an EC2 instance to more than one AZ in a region concurrently?
count = "${var.count}"
# NB: element() wraps, so this is (count.index mod len(AZs))
availability_zone = "${element(split(",", var.availability_zones), count.index)}"
subnet_id = "${element(split(",", var.subnet_ids), count.index)}"
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/84c754dc-a2f3-4e0f-9329-3b487d4cd18a%40googlegroups.com.