Terraform conditional quantity with for_each – Amazon Web Sevices
I need an if statement with for_each. If it is non-prod create resource in a single subnet, if production create resources in both subnets: locals { zone_data = { a = { subnet_id = data.aws_cloudformation_export.subnet1.value } b = { subnet_id…