Home > other >  Error when applying change for aws_apigatewayv2_api resource on LocalStack
Error when applying change for aws_apigatewayv2_api resource on LocalStack

Time:03-05

I'm trying to create an API gateway on LocalStack with terraform but I get this error:

aws_apigatewayv2_api.lambda: Creating...
╷
│ Error: error creating API Gateway v2 API: UnrecognizedClientException: 
│       status code: 403, request id: bd95aa42-75ab-42d1-9c9a-b95d9a58b3c8
│ 
│   with aws_apigatewayv2_api.lambda,
│   on main.tf line 131, in resource "aws_apigatewayv2_api" "lambda":
│  131: resource "aws_apigatewayv2_api" "lambda" {
│ 
╵

I'm following the tutorial from here: https://learn.hashicorp.com/tutorials/terraform/lambda-api-gateway

CodePudding user response:

API Gateway v2 is only supported in pro version of LocalStack. So if you want to use it, please buy the pro version.

  • Related