Attempting to declare two different vpn_gateway_route_propagation resources with the same VGW ID and RTB ID should error
Actual Behavior
Terraform allows you to declare two different vpn_gateway_route_propagation resources with the same VGW ID and RTB ID. If you then delete one of the resources and apply the change, route propagation is disabled on that RTB, even though the other resource is still defined.
Identify a VGW and RTB in your environment, with propagation to that RTB disabled. Plan and apply the above resources, replacing the IDs with the identified VGW and RTB. Note that the duplicate resource is allowed, and propagation has been enabled.
Then delete one of the resources, and plan and apply again. Note that propagation has been disabled.
If you make no changes, and plan a third time, you may see that terraform wants to re-enable propagation, violating idempotency.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.4.6
AWS Provider Version
4.67.0
Affected Resource(s)
Expected Behavior
Attempting to declare two different vpn_gateway_route_propagation resources with the same VGW ID and RTB ID should error
Actual Behavior
Terraform allows you to declare two different vpn_gateway_route_propagation resources with the same VGW ID and RTB ID. If you then delete one of the resources and apply the change, route propagation is disabled on that RTB, even though the other resource is still defined.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Identify a VGW and RTB in your environment, with propagation to that RTB disabled. Plan and apply the above resources, replacing the IDs with the identified VGW and RTB. Note that the duplicate resource is allowed, and propagation has been enabled.
Then delete one of the resources, and plan and apply again. Note that propagation has been disabled.
If you make no changes, and plan a third time, you may see that terraform wants to re-enable propagation, violating idempotency.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No