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.31.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffbf7aaef6e2545b9c9547ad13a49d0c5db4c82eb5bd5eeb85ad0f75b17eeb9b |
|
MD5 | 7a476b3224d8b431c4331384adec0017 |
|
BLAKE2b-256 | 2eb90ee6189053f4d15466f5a4591e8bd828509ac34157e0a68852755193369f |
Close
Hashes for aws_cdk.aws_ecs_patterns-0.31.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d463dbdb946e6f632297d7b0662f2f2c3b93de710ab8e2c1e378c77ee988c67 |
|
MD5 | fee87bb681e7d97b2441da2a6a03158f |
|
BLAKE2b-256 | 75c49a51fc00a07975abfe8b0960bb8c2f0e6807fe1c2c1baf60ad6beefa9fff |