Skip to content

(cdk_ecs): interactive property missing in container definition #24326

@mdeshmu

Description

@mdeshmu

Describe the bug

We are trying to use this property https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnTaskDefinition.ContainerDefinitionProperty.html#interactive in a fargate task but when we add it using

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.FargateTaskDefinition.html#addwbrcontainerid-props

We get error "interactive" does not exist in type 'ContainerDefinitionOptions'. How can we solve this ?

One observation: 'interactive' property doesn't exist in non-cfn construct for container definition https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.ContainerDefinitionOptions.html

Expected Behavior

We should be able to specify 'interactive' property

Current Behavior

throws error

Reproduction Steps

try to create a fargate task using cdk and add 'interactive': true to container defintion

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.59.0

Framework Version

No response

Node.js Version

14.x

OS

Amazon Linux 2

Language

Typescript

Language Version

3.9.10

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-ecsRelated to Amazon Elastic Containereffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions