From 23af9c9eaa2f68b20e581590f8e9910080355d51 Mon Sep 17 00:00:00 2001 From: jakepruitt Date: Fri, 8 Jun 2018 11:56:13 -0700 Subject: [PATCH] Switch refs --- lib/template.js | 4 ++-- test/__snapshots__/template.jest.js.snap | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/template.js b/lib/template.js index 273915fe..be855b7f 100644 --- a/lib/template.js +++ b/lib/template.js @@ -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', @@ -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 } diff --git a/test/__snapshots__/template.jest.js.snap b/test/__snapshots__/template.jest.js.snap index aedba968..95759d2e 100644 --- a/test/__snapshots__/template.jest.js.snap +++ b/test/__snapshots__/template.jest.js.snap @@ -242,7 +242,7 @@ Object { "Effect": "Allow", "Resource": Object { "Fn::GetAtt": Array [ - "SoupLogs", + "SoupLogGroup", "Arn", ], }, @@ -536,7 +536,7 @@ Object { "LogDriver": "awslogs", "Options": Object { "awslogs-group": Object { - "Ref": "SoupLogs", + "Ref": "SoupLogGroup", }, "awslogs-region": Object { "Ref": "AWS::Region", @@ -908,7 +908,7 @@ Object { "Effect": "Allow", "Resource": Object { "Fn::GetAtt": Array [ - "WatchbotLogs", + "WatchbotLogGroup", "Arn", ], }, @@ -1176,7 +1176,7 @@ Object { "LogDriver": "awslogs", "Options": Object { "awslogs-group": Object { - "Ref": "WatchbotLogs", + "Ref": "WatchbotLogGroup", }, "awslogs-region": Object { "Ref": "AWS::Region",