-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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_storagegateway_gateway with gateway_type FILE_S3 400 error #19111
Comments
Thanks for reporting this, @varunrsystems. I've done a bit of research on this, and from what I can tell, you're deploying the storage gateway in We check for this error at terraform-provider-aws/aws/resource_aws_storagegateway_gateway.go Lines 573 to 575 in e1a8d5e
The specified operation is not supported , while in us-east-2 the API returns This operation is not valid for the specified gateway
|
We are also seeing this in |
I'm experiencing the same issue in
|
I contacted the AWS support for this change in API response, they forwarded to SGW Service Team to investigate the issue and return with their findings, will update further reply here. |
@gdavison @varunrsystems We are also seeing this in EU-WEST-1 but not in AF-SOUTH-1. Started around 26/27 April. |
@gdavison @varunrsystems - we saw this error in US-east-1 and eu-central-1 on April 28. I would guess AWS is rolling out the same change to all regions, one by one. I'm using provider v3.37.0 |
When will v3.38.0 be released? This error is blocking some production updates we need to deploy via terraform. |
This is a me too. Stack is in us-west-2 and it was fine last week, but this week it's been balking anytime we plan it ...
|
We have also tried many different providers, ended up having to remove the storage gateway from state and add the arn values called statically just to continue our runs.. Logged a call with HashiCorp about this as well. |
We are experiencing this as well in the us-west-2 region. Plan/Apply worked two weeks ago on existing infrastructure. Now existing plan/apply failing as well as new undeployed gateways also showing this error during plan/apply. I would copy/paste our error but it's identical to others that have already posted. This is 100% blocking, and we've tried to hard-code to an older provider but have found no relief. Waiting for a fix or workaround... |
If anyone having AWS enterprise support then they can also raise this issue as production block on AWS, I already raised but not get response from last 2 days. |
We raised it and was basically told to fix the api call being made... so in this scenario terraform needs to adjust. Pretty poor show from AWS not advertising these changes. This is also not currently happening in all regions, adding to the confusion and frustration. |
This has been released in version 3.38.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! |
Update from AWS and I guess they are right about how to handle the exception. Thank you for bringing this issue to our attention. Please note that the DescribeBandwidthRateLimit API is not supported on the Amazon S3 File Gateway. Therefore, calling the API with this gateway type is expected to throw an InvalidGatewayRequestException error. We are aware that some Terraform configuration scripts to create Storage Gateway resources appear to call the DescribeBandwidthRateLimit API for all gateway types. It appears that the exception handling that is intended to handle errors from DescribeBandwidthRateLimit with unsupported gateway types, utilizes both the error and message fields to parse the exception. Since we have updated the associated error message for this API, the script appears to fail as a result. In response to your message, we have taken steps to update the error message in order to address the issue as quickly as possible. However, please note that we do not recommend utilizing the message field from API errors for exception handling but instead recommend only using the error field in order to avoid similar issues in the future. |
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
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
https://gist.github.com/varunrsystems/07076438b639b723c5c70f363d83991a
Panic Output
Expected Behavior
Terraform apply/plan successfully executed
Actual Behavior
Break with error
Steps to Reproduce
terraform apply
Important Factoids
terraform plan
when running for older infrastructurev3.36.0
,v3.35.0
,v3.34.0
, and facing same issue.gateway_type = FILE_S3
we need to make https://github.com/hashicorp/terraform-provider-aws/blob/main/aws/resource_aws_storagegateway_gateway.go#L572 conditionalReferences
The text was updated successfully, but these errors were encountered: