Metadata-Version: 2.1
Name: aws-cdk.aws-ecs-patterns
Version: 0.31.0
Summary: CDK Constructs for AWS ECS
Home-page: https://github.com/awslabs/aws-cdk
Author: Amazon Web Services
License: UNKNOWN
Project-URL: Source, https://github.com/awslabs/aws-cdk.git
Platform: UNKNOWN
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: jsii (~=0.10.5)
Requires-Dist: publication (>=0.0.3)
Requires-Dist: aws-cdk.aws-ec2 (~=0.31.0)
Requires-Dist: aws-cdk.aws-ecs (~=0.31.0)
Requires-Dist: aws-cdk.aws-events (~=0.31.0)
Requires-Dist: aws-cdk.aws-events-targets (~=0.31.0)
Requires-Dist: aws-cdk.aws-iam (~=0.31.0)
Requires-Dist: aws-cdk.cdk (~=0.31.0)

# 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`:


```ts
// 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
});
```



