CDK Constructs for AWS ECS
Project description
CDK Construct library for higher-level ECS Constructs
This library provides higher-level ECS constructs which follow common architectural patterns. It contains:
- Scheduled Tasks (cron jobs)
Scheduled Tasks
To define a task that runs periodically, instantiate an ScheduledEc2Task
:
// Instantiate an Amazon EC2 Task to run at a scheduled interval
const ecsScheduledTask = new ScheduledEc2Task(this, 'ScheduledTask', {
cluster,
image: ecs.ContainerImage.fromRegistry("amazon/amazon-ecs-sample"),
scheduleExpression: 'rate(1 minute)',
environment: [{ name: 'TRIGGER', value: 'CloudWatch Events' }],
memoryLimitMiB: 256
});
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for aws-cdk.aws-ecs-patterns-0.32.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77c25356c0e6edccc9f932c2e834606d909b081012cb71e1c372669cf350a10a |
|
MD5 | 8943817c3923c904c210a36b5d0395f9 |
|
BLAKE2b-256 | 866513f1aefef6fec4ec44d7530957811cbacb1d3ed1e029420f4f006e1064e6 |
Close
Hashes for aws_cdk.aws_ecs_patterns-0.32.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b9590db39f81bf41150654dc543987ac39d39f21199f73158bdfba5e9db3c9b |
|
MD5 | 33904e645751bc93bd8e184a6cb94ec0 |
|
BLAKE2b-256 | 04898ab13c9b8c67b0264ae68373d33fb6878e01b8fbd7c36ad1626e0bc3a689 |