diff --git a/lib/template.js b/lib/template.js index 7a5022fc..c5656c36 100644 --- a/lib/template.js +++ b/lib/template.js @@ -344,7 +344,7 @@ module.exports = (options = {}) => { Family: options.family, ContainerDefinitions: [ { - Name: cf.join('-', [prefixed(''), options.service]), + Name: cf.join('-', [prefixed(''), cf.stackName]), Image: cf.join([ cf.accountId, '.dkr.ecr.us-east-1.amazonaws.com/', diff --git a/test/__snapshots__/template.jest.js.snap b/test/__snapshots__/template.jest.js.snap index 74e7b176..36bbe7d0 100644 --- a/test/__snapshots__/template.jest.js.snap +++ b/test/__snapshots__/template.jest.js.snap @@ -594,7 +594,9 @@ Object { "-", Array [ "Soup", - "example", + Object { + "Ref": "AWS::StackName", + }, ], ], }, @@ -1262,7 +1264,9 @@ Object { "-", Array [ "Watchbot", - "example", + Object { + "Ref": "AWS::StackName", + }, ], ], },