diff --git a/__tests__/main.test.ts b/__tests__/main.test.ts index d6ccbeb..9ae26f2 100644 --- a/__tests__/main.test.ts +++ b/__tests__/main.test.ts @@ -1401,7 +1401,7 @@ describe('Deploy CloudFormation Stack', () => { const inputs: Inputs = { name: 'MockStack', template: 'template.yaml', - capabilities: 'CAPABILITY_IAM', + capabilities: 'CAPABILITY_IAM, CAPABILITY_AUTO_EXPAND', 'change-set-name': 'Build-213123123-CS', 'parameter-overrides': 'AdminEmail=no-reply@amazon.com', 'no-fail-on-empty-changeset': '1' @@ -1459,7 +1459,7 @@ describe('Deploy CloudFormation Stack', () => { { StackName: 'MockStack', TemplateBody: mockTemplate, - Capabilities: ['CAPABILITY_IAM'], + Capabilities: ['CAPABILITY_IAM', 'CAPABILITY_AUTO_EXPAND'], Parameters: [ { ParameterKey: 'AdminEmail', ParameterValue: 'no-reply@amazon.com' } ], diff --git a/src/main.ts b/src/main.ts index 0e16620..143bb23 100644 --- a/src/main.ts +++ b/src/main.ts @@ -46,7 +46,8 @@ export async function run(): Promise { .getInput('capabilities', { required: false }) - .split(',') as Capability[] + .split(',') + .map(capability => capability.trim()) as Capability[] const parameterOverrides = core.getInput('parameter-overrides', { required: false