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

AWS aurora unexpected state 'configuring-iam-database-auth' when modifying the iam_database_authentication_enabled flag #10197

Closed
reegnz opened this issue Sep 23, 2019 · 8 comments · Fixed by #17982
Labels
service/rds Issues and PRs that pertain to the rds service.
Milestone

Comments

@reegnz
Copy link

reegnz commented Sep 23, 2019

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.12.9
AWS provider v2.29.0

Affected Resource(s)

  • aws_rds_cluster

Expected Behavior

Terraform should have waited for the database to have the iam-authentication enabled.

Actual Behavior

I got this error:

Error: error waiting for RDS Cluster (playground-aurora-db-postgres) to be available: unexpected state 'configuring-iam-database-auth', wanted target 'available'. last error: %!s(<nil>)

  on main.tf line 27, in resource "aws_rds_cluster" "this":
  27: resource "aws_rds_cluster" "this" {


Releasing state lock. This may take a few moments...

Steps to Reproduce

  1. provision an rds aurora database (postgres v10.7) with the apply_immediately flag.
  2. once provisioned, add iam_database_authentication_enabled = true flag and try to reprovision
@ghost ghost added the service/rds Issues and PRs that pertain to the rds service. label Sep 23, 2019
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Sep 23, 2019
@tecnobrat
Copy link
Contributor

I took a look at the code, this looks like its missing from the state transitions for rds_cluster_instance but not for db_instance:

Missing: https://github.com/terraform-providers/terraform-provider-aws/blob/e903501d82b3d83a5342deb4ec2df95732d61ba5/aws/resource_aws_rds_cluster_instance.go#L629-L639

Does exist: https://github.com/terraform-providers/terraform-provider-aws/blob/e903501d82b3d83a5342deb4ec2df95732d61ba5/aws/resource_aws_db_instance.go#L1774

@ldalorion
Copy link

Any updates on this issue? Currently seeing this with terraform version 0.13.5 and hashicorp/aws v3.22.0.

@ghost
Copy link

ghost commented Mar 12, 2021

This has been released in version 3.32.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 for triage. Thanks!

@azhurbilo
Copy link

The same issue reproduced with 3.33 aws provider

unexpected state 'configuring-iam-database-auth', wanted target 'available'

@bill-rich could you reopen?

@bill-rich bill-rich reopened this Apr 1, 2021
@bill-rich bill-rich self-assigned this Apr 1, 2021
@bill-rich
Copy link
Contributor

Hi @azhurbilo! I wasn't able to reproduce this problem with v3.33. Can you please provide an example configuration and steps to reproduce it?

@azhurbilo
Copy link

@bill-rich thnx for checking. now I don't have candidate DB for an upgrade to reproduce it. you can close issue, if I face with unexpected state one more time, I will share the config with you

@bill-rich
Copy link
Contributor

That sounds good. Thank you!

@ghost
Copy link

ghost commented May 9, 2021

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 as resolved and limited conversation to collaborators May 9, 2021
@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/rds Issues and PRs that pertain to the rds service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants