-
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_apigatewayv2_stage failing to update when no changes #12893
Comments
Submitted #12904 to correct this. |
Ran into the same problem. Thanks @ewbankkit ! |
Any chance this could get merged? |
The fix for this has been merged and will release with version |
This has been released in version 2.65.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! |
I upgraded to aws provider "2.65.0" but I am still running into this issue when trying to use aws_apigatewayv2_stage resource. Is there also a configuration I need to make in the route_settings block to resolve this? |
@reyescameron17 Do you get the same error as in the original comment?
|
That's correct.
Running
EDIT: Looking at my error, it isn't exactly the same. No $default designation. |
@reyescameron17 Do you have |
I do not, and it should default to
|
@ewbankkit could it be that we're sending "OFF" as the default value in the method below and the AWS API validates the
Edit: just realized the acceptance tests don't cover the case where |
I am assuming I need |
@anGie44 @reyescameron17 You are correct that if you have a |
I can reproduce with a new test case: $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSAPIGatewayV2Stage_RouteSettingsHttp'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -count 1 -parallel 20 -run=TestAccAWSAPIGatewayV2Stage_RouteSettingsHttp -timeout 120m
=== RUN TestAccAWSAPIGatewayV2Stage_RouteSettingsHttp
=== PAUSE TestAccAWSAPIGatewayV2Stage_RouteSettingsHttp
=== CONT TestAccAWSAPIGatewayV2Stage_RouteSettingsHttp
--- FAIL: TestAccAWSAPIGatewayV2Stage_RouteSettingsHttp (14.87s)
testing.go:684: Step 0 error: errors during apply:
Error: error creating API Gateway v2 stage: BadRequestException: Execution logs are not supported on protocolType HTTP
on /tmp/tf-test367159095/main.tf line 7:
(source code not available)
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 14.926s
FAIL
GNUmakefile:26: recipe for target 'testacc' failed
make: *** [testacc] Error 1 @reyescameron17 Could you please raise another issue, linking to this one? Thanks. |
Will do. |
BTW we were testing for WebSocket APIs, not HTTP APIs. |
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! |
Community Note
Terraform Version
Affected Resource(s)
aws_apigatewayv2_stage
Terraform Configuration Files
Expected Behavior
As no changes have been made to the configuration, terraform shouldn't be trying to update the stage with new values
Actual Behavior
Apply fails with:
Error: error updating API Gateway v2 stage ($default): BadRequestException: Execution logs are not supported on protocolType HTTP
The plan says:
(This is running
terraform apply
immediately after the resources is created without changing the config in between)If make an aws cli call to get info on the current state of this stage, it shows
DefaultRouteSettings
as:with no other settings.
Steps to Reproduce
terraform apply
(resource created fine)terraform apply
(error shows up)References
The text was updated successfully, but these errors were encountered: