AWS RDS: TF tries to update allow_major_version_upgrade on its own and fails #500
Labels
bug
Addresses a defect in current functionality.
service/rds
Issues and PRs that pertain to the rds service.
Milestone
This issue was originally opened by @mtekel as hashicorp/terraform#11519. It was migrated here as part of the provider split. The original body of the issue is below.
Terraform Version
0.7.10, 0.7.11, but seems to be still present in latest:
https://github.com/hashicorp/terraform/blob/dc91285949fc9db7d5273eee9b5eaf04955d677c/builtin/providers/aws/resource_aws_db_instance.go#L844
Affected Resource(s)
aws_db_instance
Terraform Configuration Files
Debug Output
This is the snippet containing the issue, I have sanitized credentials:
Expected Behavior
No changes applied to AWS. TF remembers state.
Actual Behavior
TF tries to send request to AWS changing the parameter from true to false:
Steps to Reproduce
Apply with allow_major_version_upgrade set to true. Comment out/delete parameter completely (or set to false) and apply again. It's important that other parameters are not changed as well, just allow_major_version_upgrade.
Important Factoids
Looks like there needs to be some logic about when to send change of that parameter to AWS. If the parameter is changed on its own, I think it's OK just to update the state file.
The text was updated successfully, but these errors were encountered: