I have imported a CloudFormation JSON file representing a REST API Gateway.
{
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"EPaPPRestAPI": {
"DeletionPolicy": "Retain",
"Type": "AWS::ApiGateway::RestApi",
"Properties": {
"BodyS3Location": {
"Bucket": "epapp-data",
"Key": "authors.json"
},
"Description": "REST API for serving JSON data to EPaPP Flutter app",
"EndpointConfiguration": {
"Types": [
"EDGE"
]
},
"MinimumCompressionSize": 8,
"Name": "EPaPP Restful API",
"Tags": [
{
"Key": "Project",
"Value": "EPaPP"
}
]
}
}
}
}
In fact, the authors.json's size is 7MB. However, I received the below output:
Resource handler returned message: "Invalid request provided: S3 object size exceeds limit of 6 MB" (RequestToken: d80d26ea-77ff-09b4-9302-ca1f853651f2, HandlerErrorCode: InvalidRequest)