-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
unexpected state 'NOT_AVAILABLE', wanted target 'AVAILABLE' in aws_api_gateway_stage #22866
Comments
The |
+1 Was just about to report this. The workaround in #17661 does avoid this error, but I think perhaps |
The commit which introduces this bug |
Any update on this issue? we are facing with the same error. Error: error waiting for API Gateway Stage (xxx-xxx-dev) to be updated: unexpected state 'NOT_AVAILABLE', wanted target 'AVAILABLE, DELETE_IN_PROGRESS'. last error: %!s() Terrform version: Terraform v0.13.7 |
Now hitting the same error. What worked for us was manually enabling caching again and then run TF. After this caching was disabled again and TF runs ago. Nasty workaround but for now this works |
Another possible workaround is to specify that version 3.74.0 should not be used in the configuration: terraform {
required_providers {
aws = {
source = "hashicorp/aws"
# There is an issue in 3.74.0 that prevents us from deploying AWS API Gateway
# stages. https://github.com/hashicorp/terraform-provider-aws/issues/22866
version = "~> 3.0, != 3.74.0"
}
}
} |
@ryancausey It worked. Thank you |
Been looking into this and found the issue. the logic for create will set Since we only need to wait for the cluster on creation if its actually enabled, going to modify the creation logic to remove the Will have a PR out soon with changes |
@alpacamybags118 I was just looking at this a couple of days ago and was testing some fixes and came to a similar fix. However I didn't remove lines 147-150 of |
@isaacngym good question. here's my thought process, but i can change it if it makes sense when we are initially creating, we only care (at the moment) whether a cluster is being enabled or not to determine if we need to wait. if clustering isnt enabled on creation and a cluster size value is, it doesnt matter since we dont have the cluster enabled so the check doesn't really serve a purpose. that could always change if the underlying AWS apis change. We do need to to check those cases on update, however, since you could either enable the clustering, or change the size of an already enabled cluster. |
that solve it for me for now: required_providers { |
Folks let's try to keep simple
required_providers {
aws = {
source = "hashicorp/aws"
# There is an issue in 3.74.0 that prevents us from deploying AWS API Gateway
# stages. https://github.com/hashicorp/terraform-provider-aws/issues/22866
version = "~> 3.73.0"
}
} |
This issue is sort of blocking us to move to the V4 provider, any sights on when this will be fixed (and if the fix also applies to V4?) |
Is this issue really closed? I've been trying to apply the solution all day long but it doesn't seem to be working. Error: error waiting for API Gateway Stage (ags-yko01d3u3a-dev) to be updated: unexpected state 'NOT_AVAILABLE', wanted target 'AVAILABLE, DELETE_IN_PROGRESS'. last error: %!s() |
We need to wait for version 4.6.0 to go out. |
This functionality has been released in v4.6.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. Thank you! |
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Aws Cli output
Expected Behavior
Deployment should not fail with latest version
Actual Behavior
When deployt with 3.74.0, the deployment fails:
Version 3.73.0 still works.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: