aws-cdk-lib.aws_ecs.FargatePlatformVersion

enum FargatePlatformVersion

LanguageType name
.NETAmazon.CDK.AWS.ECS.FargatePlatformVersion
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#FargatePlatformVersion
Javasoftware.amazon.awscdk.services.ecs.FargatePlatformVersion
Pythonaws_cdk.aws_ecs.FargatePlatformVersion
TypeScript (source)aws-cdk-lib » aws_ecs » FargatePlatformVersion

The platform version on which to run your service.

See also: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html

Example

declare const cluster: ecs.Cluster;
const scheduledFargateTask = new ecsPatterns.ScheduledFargateTask(this, 'ScheduledFargateTask', {
  cluster,
  scheduledFargateTaskImageOptions: {
    image: ecs.ContainerImage.fromRegistry('amazon/amazon-ecs-sample'),
    memoryLimitMiB: 512,
  },
  schedule: appscaling.Schedule.expression('rate(1 minute)'),
  platformVersion: ecs.FargatePlatformVersion.LATEST,
});

Members

NameDescription
LATESTThe latest, recommended platform version.
VERSION1_4Version 1.4.0.
VERSION1_3Version 1.3.0.
VERSION1_2Version 1.2.0.
VERSION1_1Version 1.1.0.
VERSION1_0Initial release.

LATEST

The latest, recommended platform version.


VERSION1_4

Version 1.4.0.

Supports EFS endpoints, CAP_SYS_PTRACE Linux capability, network performance metrics in CloudWatch Container Insights, consolidated 20 GB ephemeral volume.


VERSION1_3

Version 1.3.0.

Supports secrets, task recycling.


VERSION1_2

Version 1.2.0.

Supports private registries.


VERSION1_1

Version 1.1.0.

Supports task metadata, health checks, service discovery.


VERSION1_0

Initial release.

Based on Amazon Linux 2017.09.