terraform-provider-aws icon indicating copy to clipboard operation
terraform-provider-aws copied to clipboard

Unable to update db_parameter_group's shared_preload_library to use two preload libraries

Open omada-jacob-smith opened this issue 5 years ago • 3 comments

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 Version

$ terraform -v Terraform v0.12.20

  • provider.aws v2.49.0

Affected Resource(s)

aws_db_parameter_group (resource)

Terraform Configuration Files

resource "aws_db_parameter_group" "db_params" {
  name   = "foo"
  family = "postgres11"

  parameter {
    name         = "shared_preload_libraries"
    value        = "pglogical,pg_stat_statements"
    apply_method = "pending-reboot"
  }
}

Expected Behavior

I should be able to use both pg_stat_statements and pglogical

Actual Behavior

The parameter group seems to be stuck on pg_stat_statements and only pg_stat_statements

Steps to Reproduce

First, we were only using "pglogical" and that worked, then we updated the parameter to be "pglogical,pg_stat_statements". We ran a plan/apply and then only pg_stat_statements was in the parameter group. I tried setting it back to pglogical only and it still is pg_stat_statements. The only way that I could get the values to work and for terraform to be content is to manually update the AWS UI. This has happened on four different databases/pg groups in exactly the same way.

Important Factoids

Not that I know of.

omada-jacob-smith avatar May 15 '20 16:05 omada-jacob-smith

I see the same behavior with "auto_explain,pg_stat_statements".

jfirebaugh avatar Jun 10 '20 17:06 jfirebaugh

Hey @omada-jacob-smith 👋 Thank you for taking the time to file this issue. Given that there's been a number of Terraform and AWS Provider releases since you initially filed this, can you confirm whether you're still experiencing the same behavior?

justinretzolk avatar Sep 27 '21 20:09 justinretzolk

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

github-actions[bot] avatar Jun 30 '24 17:06 github-actions[bot]

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[bot] avatar Sep 04 '24 02:09 github-actions[bot]