Skip to content

Commit

Permalink
use cf.stackName directly
Browse files Browse the repository at this point in the history
  • Loading branch information
arunasank committed Jun 21, 2018
1 parent fd49472 commit e4876e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/',
Expand Down
8 changes: 6 additions & 2 deletions test/__snapshots__/template.jest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,9 @@ Object {
"-",
Array [
"Soup",
"example",
Object {
"Ref": "AWS::StackName",
},
],
],
},
Expand Down Expand Up @@ -1262,7 +1264,9 @@ Object {
"-",
Array [
"Watchbot",
"example",
Object {
"Ref": "AWS::StackName",
},
],
],
},
Expand Down

0 comments on commit e4876e1

Please sign in to comment.