Closed heshammekky-sc closed 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
@heshammekkysc Thanks for raising this issue. It has already been noticed in #17198. I'm going to close this one as a duplicate so that we can concentrate discussion in the linked issue. Please add any additional comments there.
Following the merge of https://github.com/hashicorp/terraform-provider-aws/pull/30804 we should be able to address this for the upcoming v5.0.0
release of the Terraform AWS Provider.
Thank you. Would that address the need of having to specify all the empty entries in the route? This didn't come across from the discussion in the other issue.
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 Core Version
1.4.6
AWS Provider Version
4.37.0
Affected Resource(s)
aws_route_table
Expected Behavior
Right now, we have a route table entry (a route in aws_route_table) that looks like this
The route table contains other entries that are similar. When we add a new route entry, ideally we should see one new entry added to the route table. However, we see all entries are removed and re-added because we are missing some of the fields with empty string (e.g. instance_id, cidr_block or some other field).
When we try to add all these entries to get a clean diff output, it reject
cidr_block = ""
because it validates it against being a valid CIDR block.An ideal configuration would be something like this where we only define the entries we can about in a route, and the rest is actually optional.
Actual Behavior
The actual behavior we observe is that all route table entries are deleted and re-added. In addition, we cannot pass
cidr_block = ""
to get a clean diff output, and we must define all empty entries to get the desired output which is not possible in this case.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
N/A
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None