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

error setting scaling_configuration: Invalid address to set: []string{"scaling_configuration"} #5659

Closed
rojoangel opened this issue Aug 23, 2018 · 5 comments · Fixed by #5660
Assignees
Labels
bug Addresses a defect in current functionality. 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.
Milestone

Comments

@rojoangel
Copy link

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 "me too" comments, 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 v0.11.8
+ provider.aws: version 1.33.0

Affected Resource(s)

  • aws_rds_cluster

Terraform Configuration Files

data "aws_rds_cluster" "main_cluster" {
  cluster_identifier = "main-cluster"
}

Debug Output

Panic Output

Expected Behavior

Terraform should have refreshed state of cluster and continue with planing.

Actual Behavior

Error: Error refreshing state: 1 error(s) occurred:

* module.registry-service.data.aws_rds_cluster.main_cluster: 1 error(s) occurred:

2018-08-23T15:24:37.912+0200 [DEBUG] plugin.terraform-provider-aws_v1.33.0_x4: 2018/08/23 15:24:37 [ERR] plugin: plugin server: accept unix /var/folders/93/8f2g60rx7xscfs7w2rp2mft40000gn/T/plugin247577689: use of closed network connection
* module.registry-service.data.aws_rds_cluster.main_cluster: data.aws_rds_cluster.main_cluster: error setting scaling_configuration: Invalid address to set: []string{"scaling_configuration"}

Steps to Reproduce

  1. terraform init
  2. terraform apply

Important Factoids

Provider updated from from 1.32.0 to 1.33.0. Configuration works with the older version.

References

Thanks

@bflad bflad added bug Addresses a defect in current functionality. 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. labels Aug 23, 2018
@bflad bflad added this to the v1.34.0 milestone Aug 23, 2018
@bflad bflad self-assigned this Aug 23, 2018
@bflad
Copy link
Contributor

bflad commented Aug 23, 2018

Hi @rojoangel 👋 Really sorry for the hassle this has caused. For now, the workaround is to stay pinned on version 1.32.0 of the AWS provider when using that data source until this can be fixed.

We've seen regressions like this in the past with the aws_rds_cluster datasource (#4922) because it was sharing some of the code for reading RDS cluster information with the aws_rds_cluster resource, but the datasource schema was not updated at the same time. In that regard, I have submitted #5660 to fix the regression as well as prevent similar ones in the future by completely separating their logic.

@rojoangel
Copy link
Author

@bflad kudos for the quick reaction! 👏
Yes, for now we have fixed the version to 1.32.0 - that'll work for us until this gets fixed

@bflad
Copy link
Contributor

bflad commented Aug 29, 2018

The fix for this has been merged into master and will release with version 1.34.0 of the AWS provider, likely later today or tomorrow.

@bflad
Copy link
Contributor

bflad commented Aug 30, 2018

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

@ghost
Copy link

ghost commented Apr 3, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 3, 2020
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. 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
2 participants