-
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
API Gateway v2 cutom route settings update fails #16094
Comments
At the API level:
|
It looks like a call to I can reproduce this with a new acceptance test: $ make testacc TEST=./aws/ TESTARGS='-run=TestAccAWSAPIGatewayV2Stage_RouteSettingsHttp_WithRoute' ACCTEST_PARALLELISM=3
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 3 -run=TestAccAWSAPIGatewayV2Stage_RouteSettingsHttp_WithRoute -timeout 120m
=== RUN TestAccAWSAPIGatewayV2Stage_RouteSettingsHttp_WithRoute
=== PAUSE TestAccAWSAPIGatewayV2Stage_RouteSettingsHttp_WithRoute
=== CONT TestAccAWSAPIGatewayV2Stage_RouteSettingsHttp_WithRoute
resource_aws_apigatewayv2_stage_test.go:849: Step 2/3 error: Error running apply: 2020/11/10 16:22:59 [DEBUG] Using modified User-Agent: Terraform/0.12.26 HashiCorp-terraform-exec/0.10.0
Error: error updating API Gateway v2 stage (tf-acc-test-4420389067278823664): NotFoundException: Unable to find Route by key GET /first within the provided RouteSettings
{
RespMetadata: {
StatusCode: 404,
RequestID: "dc32f839-82c7-48a1-91cb-6cd68b2dd751"
},
Message_: "Unable to find Route by key GET /first within the provided RouteSettings"
}
--- FAIL: TestAccAWSAPIGatewayV2Stage_RouteSettingsHttp_WithRoute (26.77s)
FAIL
FAIL github.com/terraform-providers/terraform-provider-aws/aws 26.822s
FAIL
GNUmakefile:27: recipe for target 'testacc' failed
make: *** [testacc] Error 1 |
This has been released in version 3.16.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'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 CLI and Terraform AWS Provider Version
Terraform v0.12.26
provider.aws v3.14.1
Affected Resource(s)
Terraform Configuration Files
Minimal configuration to reproduce:
Initial locals:
Updated locals:
Expected Behavior
Custom route settings in stage should be updated.
Actual Behavior
In AWS, route is updated but not route settings. Any consequential
apply
s fail until custom route setting is deleted manually.I cannot use explicit dependency as I need it in opposite direction - see below
Steps to Reproduce
terraform apply
with provided configuration & initial localsterraform apply
with updated localsImportant Factoids
Why this explicit dependency?
Without this block, during fresh apply, provided configuration will fail with the same error (
Error: error creating API Gateway v2 stage (test): NotFoundException: Unable to find Route by key GET /first within the provided RouteSettings
) as stage can be created before route.The text was updated successfully, but these errors were encountered: