Skip to content

Commit

Permalink
Add LogGroup to worker env
Browse files Browse the repository at this point in the history
Closes #286.
  • Loading branch information
David Clark committed Sep 4, 2018
1 parent 2846686 commit 425e81f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ module.exports = (options = {}) => {
[
{ Name: 'WorkTopic', Value: options.fifo ? undefined : cf.ref(prefixed('Topic')) },
{ Name: 'QueueUrl', Value: cf.ref(prefixed('Queue')) },
{ Name: 'LogGroup', Value: cf.ref(prefixed('LogGroup')) },
{ Name: 'writableFilesystem', Value: options.writableFilesystem },
{ Name: 'maxJobDuration', Value: options.maxJobDuration },
{ Name: 'Volumes', Value: mountPoints.map((m) => m.ContainerPath).join(',') },
Expand Down
24 changes: 24 additions & 0 deletions test/__snapshots__/template.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,12 @@ Object {
"Ref": "SoupQueue",
},
},
Object {
"Name": "LogGroup",
"Value": Object {
"Ref": "SoupLogGroup",
},
},
Object {
"Name": "writableFilesystem",
"Value": false,
Expand Down Expand Up @@ -2125,6 +2131,12 @@ Object {
"Ref": "WatchbotQueue",
},
},
Object {
"Name": "LogGroup",
"Value": Object {
"Ref": "WatchbotLogGroup",
},
},
Object {
"Name": "writableFilesystem",
"Value": false,
Expand Down Expand Up @@ -3210,6 +3222,12 @@ Object {
"Ref": "WatchbotQueue",
},
},
Object {
"Name": "LogGroup",
"Value": Object {
"Ref": "WatchbotLogGroup",
},
},
Object {
"Name": "writableFilesystem",
"Value": false,
Expand Down Expand Up @@ -4279,6 +4297,12 @@ Object {
"Ref": "WatchbotQueue",
},
},
Object {
"Name": "LogGroup",
"Value": Object {
"Ref": "WatchbotLogGroup",
},
},
Object {
"Name": "writableFilesystem",
"Value": false,
Expand Down

0 comments on commit 425e81f

Please sign in to comment.