Skip to content

Commit

Permalink
Switch refs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakepruitt committed Jun 11, 2018
1 parent 1ba5dcf commit 23af9c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ module.exports = (options = {}) => {
'logs:PutLogEvents',
'logs:FilterLogEvents'
],
Resource: cf.getAtt(prefixed('Logs'), 'Arn')
Resource: cf.getAtt(prefixed('LogGroup'), 'Arn')
},
{
Effect: 'Allow',
Expand Down Expand Up @@ -348,7 +348,7 @@ module.exports = (options = {}) => {
LogConfiguration: {
LogDriver: 'awslogs',
Options: {
'awslogs-group': cf.ref(prefixed('Logs')),
'awslogs-group': cf.ref(prefixed('LogGroup')),
'awslogs-region': cf.region,
'awslogs-stream-prefix': options.serviceVersion
}
Expand Down
8 changes: 4 additions & 4 deletions test/__snapshots__/template.jest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ Object {
"Effect": "Allow",
"Resource": Object {
"Fn::GetAtt": Array [
"SoupLogs",
"SoupLogGroup",
"Arn",
],
},
Expand Down Expand Up @@ -536,7 +536,7 @@ Object {
"LogDriver": "awslogs",
"Options": Object {
"awslogs-group": Object {
"Ref": "SoupLogs",
"Ref": "SoupLogGroup",
},
"awslogs-region": Object {
"Ref": "AWS::Region",
Expand Down Expand Up @@ -908,7 +908,7 @@ Object {
"Effect": "Allow",
"Resource": Object {
"Fn::GetAtt": Array [
"WatchbotLogs",
"WatchbotLogGroup",
"Arn",
],
},
Expand Down Expand Up @@ -1176,7 +1176,7 @@ Object {
"LogDriver": "awslogs",
"Options": Object {
"awslogs-group": Object {
"Ref": "WatchbotLogs",
"Ref": "WatchbotLogGroup",
},
"awslogs-region": Object {
"Ref": "AWS::Region",
Expand Down

0 comments on commit 23af9c9

Please sign in to comment.