@zarpay/zar-cdk-lib - v0.32.0
    Preparing search index...

    Class EcsFargateTaskDefinition

    Golden Path ECS Fargate Task Definition for ZAR services.

    Provides ZAR-specific defaults and best practices:

    • Automatic VPC import via Platform class
    • Production image version validation
    • CloudWatch logging with retention
    • Init process enabled for signal handling
    const taskDef = new EcsFargateTaskDefinition(this, 'TaskDef', {
    appName: 'ZarCore',
    deployEnvironment: 'staging',
    image: ecs.ContainerImage.fromEcrRepository(repo, 'v1.0.0'),
    imageVersion: 'v1.0.0',
    secrets: {
    DATABASE_URL: ecs.Secret.fromSecretsManager(dbSecret, 'DATABASE_URL'),
    },
    });

    Hierarchy

    • Construct
      • EcsFargateTaskDefinition

    Implements

    Index

    Constructors

    Properties

    Constructors

    Properties

    container: ContainerDefinition

    The main container definition

    taskDefinition: FargateTaskDefinition

    The Fargate task definition

    vpc: IVpc

    The VPC where resources are deployed