[Bug]: Terraform wants to make a change to aws_db_proxy if auth information returned by AWS is in a different order than in terraform (regression in 4.55.0) #34142
Labels
bug
Addresses a defect in current functionality.
regression
Pertains to a degraded workflow resulting from an upstream patch or internal enhancement.
service/rds
Issues and PRs that pertain to the rds service.
Milestone
Terraform Core Version
1.3.3
AWS Provider Version
5.22.0,4.55.0
Affected Resource(s)
Expected Behavior
When upgrading from an AWS provider version before 4.55.0 with an
aws_db_proxy
resource with multipleauth
blocks, I expect a plan to show no changes no matter what order theauth
blocks are in.Actual Behavior
A plan shows changes if the order of auth blocks in terraform code is not in the same order they are shown in the AWS web console. With multiple environments or regions, the order may be different between them.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
This is not 100% self-contained. Some things like VPC, subnets, and target DB identifier need to be filled in.
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
This is likely related to #28432.
auth
onaws_db_proxy
changed fromType: schema.TypeSet
toType: schema.TypeList
. I'm not familiar with Terraform internals so I don't know the full implications of that change or the implications of changing it back. That change was released in provider version 4.55.0. I've confirmed the buggy behavior is in 4.55.0 but not 4.54.0.Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: