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

[Bug]: Crash when trying to change master password for RDS #30383

Closed
jose-sky opened this issue Mar 31, 2023 · 3 comments · Fixed by #30379
Closed

[Bug]: Crash when trying to change master password for RDS #30383

jose-sky opened this issue Mar 31, 2023 · 3 comments · Fixed by #30379
Labels
bug Addresses a defect in current functionality. crash Results from or addresses a Terraform crash or kernel panic. 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.

Comments

@jose-sky
Copy link

Terraform Core Version

1.3.4

AWS Provider Version

4.61.0

Affected Resource(s)

aws_db_instance

Expected Behavior

Changing the password should take an effect on the AWS resource and change the master password

Actual Behavior

Crash

Relevant Error/Panic Output Snippet

module.gitlab_postgres.aws_db_instance.postgresdb: Modifying... [id=gitlab]
╷
│ Error: Plugin did not respond
│ 
│   with module.gitlab_postgres.aws_db_instance.postgresdb,
│   on .terraform/modules/gitlab_postgres/main.tf line 6, in resource "aws_db_instance" "postgresdb":
│    6: resource "aws_db_instance" "postgresdb" {
│ 
│ The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.
╵

Stack trace from the terraform-provider-aws_v4.61.0_x5 plugin:

panic: interface conversion: interface {} is string, not []interface {}

goroutine 419 [running]:
github.com/hashicorp/terraform-provider-aws/internal/service/rds.dbInstancePopulateModify(0xc0006061e0, 0xe0179fd?)
        github.com/hashicorp/terraform-provider-aws/internal/service/rds/instance.go:2142 +0x2074
github.com/hashicorp/terraform-provider-aws/internal/service/rds.resourceInstanceUpdate({0xf483320?, 0xc003eaed20}, 0xc000557180, {0xdf84d00?, 0xc000388c00})
        github.com/hashicorp/terraform-provider-aws/internal/service/rds/instance.go:1965 +0x3593
github.com/hashicorp/terraform-provider-aws/internal/provider.interceptedHandler[...].func1(0x0?, {0xdf84d00?, 0xc000388c00?})
        github.com/hashicorp/terraform-provider-aws/internal/provider/intercept.go:94 +0x175
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0xf483320?, {0xf483320?, 0xc003e73230?}, 0xd?, {0xdf84d00?, 0xc000388c00?})
        github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:736 +0x87
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc001bb3500, {0xf483320, 0xc003e73230}, 0xc00129fa00, 0xc000557000, {0xdf84d00, 0xc000388c00})
        github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:847 +0x83a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc000250360, {0xf483320?, 0xc003e721b0?}, 0xc0055dd180)
        github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1021 +0xe8d
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.muxServer.ApplyResourceChange({0xc003478cf0, 0xc003478d50, {0xc0047ff2e0, 0x2, 0x2}, {0x0, 0x0, 0x0}, {0x0, 0x0, ...}, ...}, ...)
        github.com/hashicorp/[email protected]/tf5muxserver/mux_server_ApplyResourceChange.go:27 +0x102
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc00213c460, {0xf483320?, 0xc003e56c30?}, 0xc00084e4d0)
        github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:818 +0x574
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0xdc89e80?, 0xc00213c460}, {0xf483320, 0xc003e56c30}, 0xc00084e460, 0x0)
        github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc004906000, {0xf492aa0, 0xc0046011e0}, 0xc0043ec480, 0xc00490a270, 0x15cd9f80, 0x0)
        google.golang.org/[email protected]/server.go:1336 +0xd23
google.golang.org/grpc.(*Server).handleStream(0xc004906000, {0xf492aa0, 0xc0046011e0}, 0xc0043ec480, 0x0)
        google.golang.org/[email protected]/server.go:1704 +0xa2f
google.golang.org/grpc.(*Server).serveStreams.func1.2()
        google.golang.org/[email protected]/server.go:965 +0x98
created by google.golang.org/grpc.(*Server).serveStreams.func1
        google.golang.org/[email protected]/server.go:963 +0x28a

Error: The terraform-provider-aws_v4.61.0_x5 plugin crashed!

Terraform Configuration Files

N/A

Steps to Reproduce

Create Postgres DB with aws_db_instance
After creation try to change the master password value (password)

Debug Output

Error: The terraform-provider-aws_v4.61.0_x5 plugin crashed!

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@jose-sky jose-sky added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Mar 31, 2023
@github-actions
Copy link

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.

@github-actions github-actions bot added crash Results from or addresses a Terraform crash or kernel panic. service/rds Issues and PRs that pertain to the rds service. and removed needs-triage Waiting for first response or review from a maintainer. labels Mar 31, 2023
@bendotexe
Copy link

Looks like the same issue I'm having here:
#30372
Relates #28848

@github-actions
Copy link

github-actions bot commented May 1, 2023

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 May 1, 2023
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. crash Results from or addresses a Terraform crash or kernel panic. 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.
Projects
None yet
3 participants