Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TF plans show changes to db option groups when there are no changes #21367

Closed
rk7373 opened this issue Oct 19, 2021 · 7 comments · Fixed by #33511
Closed

TF plans show changes to db option groups when there are no changes #21367

rk7373 opened this issue Oct 19, 2021 · 7 comments · Fixed by #33511
Assignees
Labels
bug Addresses a defect in current functionality. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/rds Issues and PRs that pertain to the rds service.
Milestone

Comments

@rk7373
Copy link

rk7373 commented Oct 19, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • 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
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform AWS Provider Version

Terraform v0.13

  • provider registry.terraform.io/hashicorp/aws v3.63.0

Affected Resource(s)

  • aws_db_option_group

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

sample config

resource "aws_db_option_group" "foo" {
  name = "foo"

  option_group_description = "Terraform Option Group"
  engine_name              = "oracle-se2"
  major_engine_version     = "12.1"

  option {
    option_name = "S3_INTEGRATION"
    version     = "1.0"
  }
}

Expected Behavior

Infrastructure matches the TF plan so no differences should be shown in the tf plan for the RDS option group

Actual Behavior

TF plan shows the RDS option group has changes and will be updated in place

# aws_db_option_group.foo will be updated in-place
 ~ resource "aws_db_option_group" "foo" {
 ...
  - option {
     - db_security_group_memberships  = [] -> null
     - option_name                    = "S3_INTEGRATION" -> null
     - port                           = 0 -> null
     - version                        = "1.0" -> null
     - vpc_security_group_memberships = [] -> null
  }
  + option {
    + db_security_group_memberships  = []
    + option_name                    = "S3_INTEGRATION"
    + version                        = "1.0"
    + vpc_security_group_memberships = []
  }

Steps to Reproduce

  1. terraform plan
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/rds Issues and PRs that pertain to the rds service. labels Oct 19, 2021
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Oct 19, 2021
@mrg2k8
Copy link

mrg2k8 commented Nov 11, 2021

I had the same issue and fixed it by updating to Terraform v1.0.11 and provider registry.terraform.io/hashicorp/aws v3.54.0.

@rk7373
Copy link
Author

rk7373 commented Nov 12, 2021

Thank you for the feedback, this is good to know. We have updating to Terraform v1 on the roadmap

@r2c2
Copy link

r2c2 commented Dec 1, 2021

I still face the issue with terraform v1.011 and aws provider v3.65.0

@rk7373
Copy link
Author

rk7373 commented Dec 9, 2021

I still face the same issue using tf1.0.11 and the following aws provider versions

  • v3.54.0
  • v3.65.0
  • v3.68.0

@ChastinaLi
Copy link

facing this with aws provider v5.10.0 and terraform v1.3.0

@YakDriver YakDriver self-assigned this Sep 18, 2023
@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Sep 18, 2023
@YakDriver YakDriver added this to the v5.18.0 milestone Sep 18, 2023
@github-actions
Copy link

This functionality has been released in v5.18.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2023
@justinretzolk justinretzolk added the bug Addresses a defect in current functionality. label Feb 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/rds Issues and PRs that pertain to the rds service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants