FargatePlatformVersion

class aws_cdk.aws_ecs.FargatePlatformVersion(value)

Bases: enum.Enum

The platform version on which to run your service.

See

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

ExampleMetadata

infused

Example:

# cluster: ecs.Cluster

scheduled_fargate_task = ecs_patterns.ScheduledFargateTask(self, "ScheduledFargateTask",
    cluster=cluster,
    scheduled_fargate_task_image_options=ecsPatterns.ScheduledFargateTaskImageOptions(
        image=ecs.ContainerImage.from_registry("amazon/amazon-ecs-sample"),
        memory_limit_mi_b=512
    ),
    schedule=appscaling.Schedule.expression("rate(1 minute)"),
    platform_version=ecs.FargatePlatformVersion.LATEST
)

Attributes

LATEST

The latest, recommended platform version.

VERSION1_0

Initial release.

Based on Amazon Linux 2017.09.

VERSION1_1

Version 1.1.0.

Supports task metadata, health checks, service discovery.

VERSION1_2

Version 1.2.0.

Supports private registries.

VERSION1_3

Version 1.3.0.

Supports secrets, task recycling.

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.