-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(cdk_ecs): interactive property missing in container definition #24326
Comments
From #16025 (comment), containerDefinitions is a Lazy Value, which means we can't use escape hatches to modify the properties that aren't exposed to our L2 constructs. Is there any other workaround? If not, can we please add it as a feature please. |
We probably need to add this in the ContainerDefinitionOptions so it could be rendered as expected. I am making it a p2 feature request and any PR submission is welcome and appreciated. |
@pahud I can raise for this one if time permits. Any sample PR would be useful to follow. |
This pull request adds the `interactive` argument to `ContainerDefinitionOptions`. This argument is used when deploying containerized applications that require the allocation of standard input (stdin) or a terminal (tty). This parameter corresponds to `OpenStdin` in the "Create a container" section of the Docker Remote API and the `--interactive` option to `docker run`. Closes #24326. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…28536) This pull request adds the `interactive` argument to `ContainerDefinitionOptions`. This argument is used when deploying containerized applications that require the allocation of standard input (stdin) or a terminal (tty). This parameter corresponds to `OpenStdin` in the "Create a container" section of the Docker Remote API and the `--interactive` option to `docker run`. Closes aws#24326. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
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
The text was updated successfully, but these errors were encountered: