-
-
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
fix: Ensure database route table output works #926
fix: Ensure database route table output works #926
Conversation
On initial plan the `database_route_table_ids` output is not available due to the values not being known until after apply. Switching the logic to test the length of the array fixes this issue. Credit to @martin566 for discovering the solution. fixes terraform-aws-modules#857
This PR has been automatically marked as stale because it has been open 30 days |
Bump |
This PR has been automatically marked as stale because it has been open 30 days |
Bump |
+1 |
I would like to see a reproduction and then something I can test that validates this change. Right now I am not sold and this statement still stands #857 (comment) |
@bryantbiggs Thanks for responding. I did manage to reproduce but I had to make another change along with this. If it looks decent to you, I will create new PR.
This Produces error
Changes:
After the changes, there is no more error. Although, I'm not entirely sure if additional condition should be applied to rest of the |
folks - lets stick with discussing the issue and how to reproduce the issue before we start opening pull requests. I will kindly wait for a reproduction until proceeding any further on this topic |
Sorry, Is there a particular way of reproducing? |
Reproduction Code:
Steps to reproduce the behavior:
Expected behaviour:All the resources including VPC, Subnets, Peering Connection and & new routes created. Actual behaviour:
Hope this helps! |
Awesome, thank you @srini-hv - that was extremely helpful to test and validate. Will merge once CI checks pass |
This PR is included in version 5.1.1 🎉 |
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. |
Description
On initial plan/apply the output
database_route_table_ids
is not available due to the values not being known until after apply. Switching the logic to test the length of the array of resource ids instead of atry()
fixes this issue. Credit to @martin566 for discovering the solution.Motivation and Context
Breaking Changes
None.
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull requestHave also confirmed in my use case that before this patch, example code like this failed (truncated for brevity):
After this patch, the error was not present and the plan/apply succeeded.