Randomly, after creating the resource after 3 weeks, aws_dx_gateway_association_proposal showed a drift in the AWS account when a plan was run:
Note: Objects have changed outside of Terraform
Terraform detected the following changes made outside of Terraform since the
last "terraform apply" which may have affected this plan:
# aws_dx_gateway_association_proposal.middleware_to_shared has been deleted
- resource "aws_dx_gateway_association_proposal" "middleware_to_shared" {
- id = "<redacted>" -> null
# (6 unchanged attributes hidden)
}
This subsequently caused the terraform to generate a create resource:
Once the gateway proposal is accepted by the source account, the dx gw association should be mapped to the proposal. Also, terraform shouldn't randomly show a drift in the aws_dx_gateway_association_proposal resource
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.5.7
AWS Provider Version
5.24.0
Affected Resource(s)
aws_dx_gateway_association_proposal
Expected Behavior
Randomly, after creating the resource after 3 weeks, aws_dx_gateway_association_proposal showed a drift in the AWS account when a plan was run:
This subsequently caused the terraform to generate a create resource:
Actual Behavior
Once the gateway proposal is accepted by the source account, the dx gw association should be mapped to the proposal. Also, terraform shouldn't randomly show a drift in the
aws_dx_gateway_association_proposal
resourceRelevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Unknown, it happened randomly
Debug Output
In cloudtrail events, we can see:
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No