Giter VIP home page Giter VIP logo

Comments (9)

naruse666 avatar naruse666 commented on August 16, 2024 1

@justinretzolk
I completely missed it.
Thank you for teaching me so carefully!

from terraform-provider-aws.

github-actions avatar github-actions commented on August 16, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

from terraform-provider-aws.

justinretzolk avatar justinretzolk commented on August 16, 2024

Hey @naruse666 👋 Thank you for taking the time to raise this! I took a look over some of the related AWS documentation and noticed a note in the ModifyDBParameterGroup documentation that leads me to believe this may be an eventual consistency issue. If you wait a few minute between the applies, does the issue persist?

from terraform-provider-aws.

naruse666 avatar naruse666 commented on August 16, 2024

Yes, differences will continue to be generated even after a period of time as stated in the documentation.

The change in apply_method was successful, and tfstate also appears to be correct, so I have not been able to identify the problem code.

from terraform-provider-aws.

justinretzolk avatar justinretzolk commented on August 16, 2024

@naruse666 In these cases, what do you see if you use describe-db-parameter-groups to fetch information about the parameter group? Does the apply_method look correct?

from terraform-provider-aws.

naruse666 avatar naruse666 commented on August 16, 2024

@justinretzolk
This is the command executed and the result.

aws rds describe-db-parameters --db-parameter-group-name rds-pg |jq -r '.Parameters[] | [.ParameterName, .ParameterValue, .ApplyMethod] '
[
  "deadlock_timeout",
  null,
...skipping...
  "log_statement",
  "mod",
  "immediate"
]

Why does this simple change cause a deadlock?
This may be due to my lack of AWS knowledge.

from terraform-provider-aws.

justinretzolk avatar justinretzolk commented on August 16, 2024

Hey @naruse666 👋 I took another look over this and noticed a callout note at the top of the aws_db_parameter_group documentation:

After applying your changes, you may encounter a perpetual diff in your Terraform plan output for a parameter whose value remains unchanged but whose apply_method is changing (e.g., from immediate to pending-reboot, or pending-reboot to immediate). If only the apply method of a parameter is changing, the AWS API will not register this change. To change the apply_method of a parameter, its value must also change.

Since it looks like this is expected behavior caused by the way the upstream API behaves, I'll go ahead and close this issue as well.

from terraform-provider-aws.

github-actions avatar github-actions commented on August 16, 2024

Warning

This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

from terraform-provider-aws.

github-actions avatar github-actions commented on August 16, 2024

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.

from terraform-provider-aws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.