Created
October 26, 2018 09:25
-
-
Save kalinchernev/de28b1a0405a74c9cef925d9b236409e to your computer and use it in GitHub Desktop.
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
const runParams = { | |
taskDefinition: RUNNER, | |
launchType: "FARGATE", | |
networkConfiguration: { | |
awsvpcConfiguration: { | |
assignPublicIp: "ENABLED", | |
subnets: [SUBNET] | |
} | |
}, | |
overrides: { | |
containerOverrides: [ | |
{ | |
environment: [ | |
{ | |
name: "AWS_LAMBDA_HANDLER_EVENT", | |
value: JSON.stringify(initialMessage) | |
}, | |
{ | |
name: "AWS_LAMBDA_HANDLER_CONTEXT", | |
value: JSON.stringify(context) | |
}, | |
{ | |
name: "AWS_LAMBDA_HANDLER_NAME", | |
value: handlerData.name | |
}, | |
{ | |
name: "AWS_LAMBDA_HANDLER_PATH", | |
value: handlerData.path | |
} | |
], | |
name: RUNNER | |
} | |
] | |
} | |
}; | |
await ecs.runTask(runParams).promise(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment