I’m attempting to deploy my api for the first time, but get an error in the process that stops the stack update and causes a rollback.
The relevant part of the log output is:
...
CloudFormation - CREATE_IN_PROGRESS - AWS::ApiGateway::RestApi - ApiGatewayRestApi
CloudFormation - CREATE_COMPLETE - AWS::ApiGateway::RestApi - ApiGatewayRestApi
CloudFormation - CREATE_FAILED - AWS::ApiGateway::Resource - ApiGatewayResourceApi
CloudFormation - CREATE_FAILED - AWS::IAM::Role - IamRoleLambdaExecution
CloudFormation - CREATE_FAILED - AWS::DynamoDB::Table - usersTable
CloudFormation - CREATE_FAILED - AWS::DynamoDB::Table - resortsTable
CloudFormation - UPDATE_ROLLBACK_IN_PROGRESS - AWS::CloudFormation::Stack - ullerApi-dev
...
It seems like the relevant portion of the CFT is:
"ApiGatewayResourceApi": {
"Type": "AWS::ApiGateway::Resource",
"Properties": {
"ParentId": {
"Fn::GetAtt": [
"ApiGatewayRestApi",
"RootResourceId"
],
"Ref": "ApiGatewayResource"
},
"PathPart": "api",
"RestApiId": {
"Ref": "ApiGatewayRestApi"
}
}
},
Any ideas on what might be causing this or how to resolve it?