GradientEdge CDK Utils
    Preparing search index...

    Provides operations on AWS Elastic Container Service.

    • A new instance of this class is injected into CommonConstruct constructor.
    • If a custom construct extends CommonConstruct, an instance is available within the context.
    import { CommonConstruct } from '@gradientedge/cdk-utils'

    class CustomConstruct extends CommonConstruct {
    constructor(parent: Construct, id: string, props: common.CommonStackProps) {
    super(parent, id, props)
    this.props = props
    this.ecsManager.createEcsCluster('MyCluster', this, vpc)
    }
    }
    Index

    Constructors

    Methods

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: EcsTaskProps

        the ECS task definition properties

      • cluster: ICluster

        the ECS cluster to associate with the task

      • role: Role

        the IAM role for task execution and task role

      • logGroup: ILogGroup

        the CloudWatch log group for container logging

      • containerImage: ContainerImage

        the container image to use for the task

      • Optionalenvironment: any

        optional environment variables for the container

      • Optionalsecrets: any

        optional secret values to inject into the container

      • Optionalcommand: string[]

        optional command to override the container entrypoint

      Returns TaskDefinition