Skip to content

Commit b1084e8

Browse files
authored
Merge branch 'main' into TheRealAmazonKendra/batch-test-fix
2 parents feb004a + ebab1cd commit b1084e8

15 files changed

Lines changed: 170 additions & 542 deletions

File tree

packages/@aws-cdk/aws-cloud9/lib/environment.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export enum ConnectionType {
3434
CONNECT_SSH = 'CONNECT_SSH',
3535
/**
3636
* Connect through AWS Systems Manager
37+
* When using SSM, service role and instance profile aren't automatically created.
38+
* See https://docs.aws.amazon.com/cloud9/latest/user-guide/ec2-ssm.html#service-role-ssm
3739
*/
3840
CONNECT_SSM = 'CONNECT_SSM'
3941
}

packages/@aws-cdk/aws-cloud9/test/image-id.integ.snapshot/C9Stack.assets.json renamed to packages/@aws-cdk/aws-cloud9/test/cloud9.integ.snapshot/C9Stack.assets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"version": "20.0.0",
33
"files": {
4-
"f9e7c320234302f703a47f0be7da188a1e91f7863c71a04835efd508d926216c": {
4+
"bce46c387f7a562ced8e71e7f0c8bd1829de8aa12a8f5938bf4ccba9f3748d84": {
55
"source": {
66
"path": "C9Stack.template.json",
77
"packaging": "file"
88
},
99
"destinations": {
1010
"current_account-current_region": {
1111
"bucketName": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}",
12-
"objectKey": "f9e7c320234302f703a47f0be7da188a1e91f7863c71a04835efd508d926216c.json",
12+
"objectKey": "bce46c387f7a562ced8e71e7f0c8bd1829de8aa12a8f5938bf4ccba9f3748d84.json",
1313
"assumeRoleArn": "arn:${AWS::Partition}:iam::${AWS::AccountId}:role/cdk-hnb659fds-file-publishing-role-${AWS::AccountId}-${AWS::Region}"
1414
}
1515
}

packages/@aws-cdk/aws-cloud9/test/cloud9.integ.snapshot/C9Stack.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,9 @@
360360
"C9EnvF05FC3BE": {
361361
"Type": "AWS::Cloud9::EnvironmentEC2",
362362
"Properties": {
363+
"InstanceType": "t2.micro",
363364
"ConnectionType": "CONNECT_SSH",
364365
"ImageId": "amazonlinux-2-x86_64",
365-
"InstanceType": "t2.micro",
366366
"Repositories": [
367367
{
368368
"PathComponent": "/foo",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"17.0.0"}
1+
{"version":"20.0.0"}

packages/@aws-cdk/aws-cloud9/test/cloud9.integ.snapshot/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "17.0.0",
2+
"version": "20.0.0",
33
"artifacts": {
44
"Tree": {
55
"type": "cdk:tree",

packages/@aws-cdk/aws-cloud9/test/cloud9.integ.snapshot/tree.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"id": "Tree",
99
"path": "Tree",
1010
"constructInfo": {
11-
"fqn": "@aws-cdk/core.Construct",
12-
"version": "0.0.0"
11+
"fqn": "constructs.Construct",
12+
"version": "10.1.71"
1313
}
1414
},
1515
"C9Stack": {
@@ -646,6 +646,8 @@
646646
"aws:cdk:cloudformation:type": "AWS::Cloud9::EnvironmentEC2",
647647
"aws:cdk:cloudformation:props": {
648648
"instanceType": "t2.micro",
649+
"connectionType": "CONNECT_SSH",
650+
"imageId": "amazonlinux-2-x86_64",
649651
"repositories": [
650652
{
651653
"repositoryUrl": {

packages/@aws-cdk/aws-cloud9/test/connection-type.integ.snapshot/C9Stack.template.json renamed to packages/@aws-cdk/aws-cloud9/test/connection-type.integ.snapshot/C9ConnectionTypeStack.template.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"Tags": [
1111
{
1212
"Key": "Name",
13-
"Value": "C9Stack/VPC"
13+
"Value": "C9ConnectionTypeStack/VPC"
1414
}
1515
]
1616
}
@@ -42,7 +42,7 @@
4242
},
4343
{
4444
"Key": "Name",
45-
"Value": "C9Stack/VPC/PublicSubnet1"
45+
"Value": "C9ConnectionTypeStack/VPC/PublicSubnet1"
4646
}
4747
]
4848
}
@@ -56,7 +56,7 @@
5656
"Tags": [
5757
{
5858
"Key": "Name",
59-
"Value": "C9Stack/VPC/PublicSubnet1"
59+
"Value": "C9ConnectionTypeStack/VPC/PublicSubnet1"
6060
}
6161
]
6262
}
@@ -94,7 +94,7 @@
9494
"Tags": [
9595
{
9696
"Key": "Name",
97-
"Value": "C9Stack/VPC/PublicSubnet1"
97+
"Value": "C9ConnectionTypeStack/VPC/PublicSubnet1"
9898
}
9999
]
100100
}
@@ -114,7 +114,7 @@
114114
"Tags": [
115115
{
116116
"Key": "Name",
117-
"Value": "C9Stack/VPC/PublicSubnet1"
117+
"Value": "C9ConnectionTypeStack/VPC/PublicSubnet1"
118118
}
119119
]
120120
}
@@ -146,7 +146,7 @@
146146
},
147147
{
148148
"Key": "Name",
149-
"Value": "C9Stack/VPC/PublicSubnet2"
149+
"Value": "C9ConnectionTypeStack/VPC/PublicSubnet2"
150150
}
151151
]
152152
}
@@ -160,7 +160,7 @@
160160
"Tags": [
161161
{
162162
"Key": "Name",
163-
"Value": "C9Stack/VPC/PublicSubnet2"
163+
"Value": "C9ConnectionTypeStack/VPC/PublicSubnet2"
164164
}
165165
]
166166
}
@@ -218,7 +218,7 @@
218218
},
219219
{
220220
"Key": "Name",
221-
"Value": "C9Stack/VPC/PrivateSubnet1"
221+
"Value": "C9ConnectionTypeStack/VPC/PrivateSubnet1"
222222
}
223223
]
224224
}
@@ -232,7 +232,7 @@
232232
"Tags": [
233233
{
234234
"Key": "Name",
235-
"Value": "C9Stack/VPC/PrivateSubnet1"
235+
"Value": "C9ConnectionTypeStack/VPC/PrivateSubnet1"
236236
}
237237
]
238238
}
@@ -287,7 +287,7 @@
287287
},
288288
{
289289
"Key": "Name",
290-
"Value": "C9Stack/VPC/PrivateSubnet2"
290+
"Value": "C9ConnectionTypeStack/VPC/PrivateSubnet2"
291291
}
292292
]
293293
}
@@ -301,7 +301,7 @@
301301
"Tags": [
302302
{
303303
"Key": "Name",
304-
"Value": "C9Stack/VPC/PrivateSubnet2"
304+
"Value": "C9ConnectionTypeStack/VPC/PrivateSubnet2"
305305
}
306306
]
307307
}
@@ -335,7 +335,7 @@
335335
"Tags": [
336336
{
337337
"Key": "Name",
338-
"Value": "C9Stack/VPC"
338+
"Value": "C9ConnectionTypeStack/VPC"
339339
}
340340
]
341341
}
@@ -360,9 +360,9 @@
360360
"C9EnvF05FC3BE": {
361361
"Type": "AWS::Cloud9::EnvironmentEC2",
362362
"Properties": {
363-
"ConnectionType": "CONNECT_SSM",
364-
"ImageId": "amazonlinux-2-x86_64",
365363
"InstanceType": "t2.micro",
364+
"ConnectionType": "CONNECT_SSH",
365+
"ImageId": "amazonlinux-2-x86_64",
366366
"Repositories": [
367367
{
368368
"PathComponent": "/foo",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"17.0.0"}
1+
{"version":"20.0.0"}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
22
"version": "20.0.0",
33
"testCases": {
4-
"integ.connection-type": {
4+
"cloud-9-connection-type/DefaultTest": {
55
"stacks": [
6-
"C9Stack"
6+
"C9ConnectionTypeStack"
77
],
8-
"diffAssets": false,
9-
"stackUpdateWorkflow": true
8+
"assertionStack": "cloud9connectiontypeDefaultTestDeployAssert401C3608"
109
}
11-
},
12-
"synthContext": {},
13-
"enableLookups": false
10+
}
1411
}

0 commit comments

Comments
 (0)