Skip to content

Cannot create API Gateway in Serverless API template: error creating API Gateway v2 route: ConflictException #40

@mxro

Description

@mxro

The following error is shown sometimes when rolling out the infrastructure for a new API gateway defined in the Serverless APP template:

error creating API Gateway v2 route: ConflictException: Unable to complete operation due to concurrent modification. Please try again later. [0m

 [0m  on lambda_routes.tf line 43, in resource "aws_apigatewayv2_route" 
"this":  43: resource "aws_apigatewayv2_route" "this"  [4m{ [0m

This appears to be a known issue in the Terraform provider:

hashicorp/terraform-provider-aws#18018

Workaround

Simply run yarn infra up [deployment] or yarn infra apply [deployment] again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions