I have a cloud formation template that defines a new api gateway:
AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: API for getting planetary info Resources: PlanetsApi: Type: AWS::ApiGateway::RestApi Properties: Name: "Planets API"
I have CodePipeline set up to create this as a change set and then execute the change set.
When the change set executes, it fails with the following error:
13:55:28 UTC-0400 CREATE_FAILED AWS::ApiGateway::RestApi PlanetsApi S3 object size exceeds limit of 2 MB
I don't know where this limit is coming from, or why anything is being uploaded to S3. Google searches are turning up no useful information. Curiously, if I create the change set and execute through the CloudFormation console, I don't get any errors.
What am I doing wrong?