Zappa icon indicating copy to clipboard operation
Zappa copied to clipboard

Deployment fails on API Gateway: Invalid API Key identifier specified

Open mxlei01 opened this issue 5 years ago • 2 comments

Context

Zappa deploy fails with an exception:

botocore.errorfactory.NotFoundException: An error occurred (NotFoundException) when calling the UpdateApiKey operation: Invalid API Key identifier specified

Is there anyway to debug this?

Your Environment

Zappa Version: zappa==0.48.2 The configuration file is as follows:

{ "prod": { "app_function": "main.app", "profile_name": "default", "project_name": "some-project-name", "runtime": "python3.7", "s3_bucket": "some-bucket-name", "aws_region": "us-east-1", "apigateway_enabled": true, "api_key_required": true, "api_key": "some-api-key" } }

mxlei01 avatar May 19 '19 16:05 mxlei01

@mxlei01 can you fix it?

h-rub avatar Nov 04 '22 17:11 h-rub

@h-rub Can you retry? Sometimes during deployment, a resource is not created yet and botocore throws NotFoundException.

souravjamwal77 avatar Nov 06 '22 10:11 souravjamwal77