Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ You can override the generated CF resource properties per task with the `overrid
```
custom:
fargate:
override:
cluster:
Foo: bar

tasks:
my-task:
image: 123456789369.dkr.ecr.eu-west-1.amazonaws.com/my-image
Expand Down
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ class ServerlessFargateTasks {

if (debug) consoleLog(yellow('Fargate Tasks Plugin'));

const clusterOverride = options.override && options.override.cluster || {};

// add the cluster
template['Resources']['FargateTasksCluster'] = {
"Type" : "AWS::ECS::Cluster",
...clusterOverride
}

// Create a loggroup for the logs
Expand Down