-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Hi Team,
I was trying to deploy my additional stack using the sls deploy additionalstack and encountered the issue to deploy the Type: AWS::Serverless::Application. I have added the Transform: AWS::Serverless-2016-10-31 which requires to enable the [CAPABILITY_AUTO_EXPAND]. I have seen the similar issue fixed in sls deploy serverless/serverless#5997
Below is my additional stack template :
additionalStack:
Deploy: Before
Description: cloudtrail for sumo logic
Transform: AWS::Serverless-2016-10-31
StackName: ${self:service}-cloudtrail
Conditions:
SetUpCloudTrail: !Equals [ !Ref DeploymentType, "App-SumoResources-CloudTrail-S3Bucket" ]
SetupSumoResources: !Or
- !Equals [ !Ref DeploymentType, "App-SumoResources-CloudTrail-S3Bucket" ]
- !Equals [ !Ref DeploymentType, "App-SumoResources" ]
Resources:
#########################################################################################
## CloudTrail to S3
###################################################g######################################
SumoAppUtils:
Type: AWS::Serverless::Application
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:us-east-1:956882708938:applications/sumologic-app-utils
SemanticVersion: 2.0.1
Command : sls deploy additionalstacks --stack cloudtrail
Error snippet:
Serverless Error ---------------------------------------
Requires capabilities : [CAPABILITY_AUTO_EXPAND]
Is it something we need pass any additional commands to deploy which requires capabilities?