This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| description: Triggers AWS Lambda Fargate Function | |
| schemaVersion: '0.3' | |
| parameters: | |
| Region: | |
| description: (Required) Name of the Region | |
| type: String | |
| default: us-east-1 | |
| Cluster: | |
| description: (Required) Name of the ECS cluster | |
| type: String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exports.handler = async function (event) | |
| const AWS = require('aws-sdk'); | |
| console.log("Starting lambda"); | |
| AWS.config.region = event.key4; | |
| const ecs = new AWS.ECS({ apiVersion: '2014-11-13' }); | |
| const sns = new AWS.SNS({ apiVersion: '2016-11-15' }); | |
| const FARGATE_CLUSTERS = [ | |
| { | |
| cluster: event.key1, |