Skip to content

Commit 1f9788f

Browse files
feat(ecs): interactive option in ContainerDefinitionOptions (#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 #24326. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 166967f commit 1f9788f

12 files changed

+554
-0
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-add-interactive-container.js.snapshot/aws-ecs-integ.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"Resources": {
3+
"TaskDefinitionTaskRoleFD40A61D": {
4+
"Type": "AWS::IAM::Role",
5+
"Properties": {
6+
"AssumeRolePolicyDocument": {
7+
"Statement": [
8+
{
9+
"Action": "sts:AssumeRole",
10+
"Effect": "Allow",
11+
"Principal": {
12+
"Service": "ecs-tasks.amazonaws.com"
13+
}
14+
}
15+
],
16+
"Version": "2012-10-17"
17+
}
18+
}
19+
},
20+
"TaskDefinitionB36D86D9": {
21+
"Type": "AWS::ECS::TaskDefinition",
22+
"Properties": {
23+
"ContainerDefinitions": [
24+
{
25+
"Essential": true,
26+
"Image": "amazon/amazon-ecs-sample",
27+
"Interactive": true,
28+
"Name": "Container"
29+
}
30+
],
31+
"Cpu": "256",
32+
"Family": "awsecsintegTaskDefinition11DF163D",
33+
"Memory": "512",
34+
"NetworkMode": "awsvpc",
35+
"RequiresCompatibilities": [
36+
"FARGATE"
37+
],
38+
"TaskRoleArn": {
39+
"Fn::GetAtt": [
40+
"TaskDefinitionTaskRoleFD40A61D",
41+
"Arn"
42+
]
43+
}
44+
}
45+
}
46+
},
47+
"Parameters": {
48+
"BootstrapVersion": {
49+
"Type": "AWS::SSM::Parameter::Value<String>",
50+
"Default": "/cdk-bootstrap/hnb659fds/version",
51+
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
52+
}
53+
},
54+
"Rules": {
55+
"CheckBootstrapVersion": {
56+
"Assertions": [
57+
{
58+
"Assert": {
59+
"Fn::Not": [
60+
{
61+
"Fn::Contains": [
62+
[
63+
"1",
64+
"2",
65+
"3",
66+
"4",
67+
"5"
68+
],
69+
{
70+
"Ref": "BootstrapVersion"
71+
}
72+
]
73+
}
74+
]
75+
},
76+
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
77+
}
78+
]
79+
}
80+
}
81+
}

packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-add-interactive-container.js.snapshot/awsecscontainerdefinitioninteractiveDefaultTestDeployAssert6E49E825.assets.json

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-add-interactive-container.js.snapshot/awsecscontainerdefinitioninteractiveDefaultTestDeployAssert6E49E825.template.json

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-add-interactive-container.js.snapshot/cdk.out

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-add-interactive-container.js.snapshot/integ.json

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-ecs/test/base/integ.task-definition-add-interactive-container.js.snapshot/manifest.json

+119
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)