-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subnet Output Values Format Issue #691
Comments
This can be a potential workaround until we have proper support for The downside of the approach you are recommending here is the amount of unnecessary information each |
This issue has been automatically marked as stale because it has been open 30 days |
This issue was automatically closed because of stale in 10 days |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
terraform-aws-vpc/outputs.tf
Line 73 in 39eae21
This is an issue with all subnet outputs. That there should be outputs for each of the subnet resources themselves, instead of or in addition to having an output for that's a list of an attribute for all the subnets of that type.
The reason why this is an issue is that based on the current outputs available I cannot determine which subnet are created in which of the AZ IDs I've specified. The use of the splat expression to output each value separately is the issue. If you were to just output the value = aws_subnet.private it could then be grouped by AZ or any other value of each subnet.
However, since that is missing the only way to determine this is to pass the output subnet IDs to a data source which if the subnets haven't previously been created results in an error that Terraform cannot be determined until apply.
This is how I recommend it should be, output the subnet resource for private, public, intra, database, and redshift:
So that I can do this:
The text was updated successfully, but these errors were encountered: