Skip to content
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

db_subnet_group: fix failing output expressions #22

Merged

Conversation

apparentlymart
Copy link
Contributor

Accessing aws_db_subnet_group.this when its count = 0 is an error, so we need to instead access it via splat syntax and then apply a default value for when the resulting list is empty.

This error was previously suppressed by Terraform's behavior of ignoring errors in output expressions. Such errors are no longer ignored as of Terraform 0.11.0.

Accessing aws_db_subnet_group.this when its count = 0 is an error, so we
need to instead access it via splat syntax and then apply a default value
for when the resulting list is empty.
@antonbabenko antonbabenko merged commit 7d1ad36 into terraform-aws-modules:master Nov 16, 2017
@github-actions
Copy link

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants