This file contains 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
// In the Scheduler Stack =========================================== | |
// Lambda Function to start/stop tasks | |
const ecsScheduleFnc = new Function(this, 'ecsScheduleFnc', { | |
description: 'Lambda ECS Service Mgt Function', | |
functionName: 'ecsScheduleFnc', | |
runtime: Runtime.NODEJS_14_X, | |
handler: 'index.handler', | |
timeout: Duration.seconds(5), | |
code: Code.fromAsset(`${__dirname}/lambda/manage-task`), | |
}); |