Skip to content

Commit 75cf2e0

Browse files
authored
2 parents c14a1ff + 3a64371 commit 75cf2e0

File tree

206 files changed

+32508
-20803
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+32508
-20803
lines changed

.github/workflows/request-cli-integ-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
:arrow_right: **PR build request submitted to `test-main-pipeline`** :arrow_left:
6161
6262
A maintainer must now check the pipeline and add the `pr-linter/cli-integ-tested` label once the pipeline succeeds.
63-
comment_tag: request-cli-integ-test
63+
comment-tag: request-cli-integ-test
6464
mode: recreate
6565
# Post as our automation user
66-
GITHUB_TOKEN: ${{ secrets.PROJEN_GITHUB_TOKEN }}
66+
github-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}

CHANGELOG.v2.alpha.md

+13
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.164.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.163.1-alpha.0...v2.164.0-alpha.0) (2024-10-24)
6+
7+
8+
### Features
9+
10+
* **iot:** scheduled audit ([#31776](https://github.com/aws/aws-cdk/issues/31776)) ([366b492](https://github.com/aws/aws-cdk/commit/366b4927c50168113dd4057f6255ab6c76278135)), closes [#31779](https://github.com/aws/aws-cdk/issues/31779)
11+
12+
13+
### Bug Fixes
14+
15+
* **ec2:** allow NAT instance to associate public IP ([#31812](https://github.com/aws/aws-cdk/issues/31812)) ([e96b4ce](https://github.com/aws/aws-cdk/commit/e96b4ce4ae64076e4c2e688c649c69fb15a624d6)), closes [#31711](https://github.com/aws/aws-cdk/issues/31711)
16+
* **scheduler-targets-alpha:** imported lambda function as schedule target throws synth error ([#31837](https://github.com/aws/aws-cdk/issues/31837)) ([d1d179f](https://github.com/aws/aws-cdk/commit/d1d179f617f83bbb3bf44d3cc629be8eed0d4e2b)), closes [#29284](https://github.com/aws/aws-cdk/issues/29284)
17+
518
## [2.163.1-alpha.0](https://github.com/aws/aws-cdk/compare/v2.163.0-alpha.0...v2.163.1-alpha.0) (2024-10-22)
619

720
## [2.163.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.162.1-alpha.0...v2.163.0-alpha.0) (2024-10-21)

CHANGELOG.v2.md

+18
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.164.0](https://github.com/aws/aws-cdk/compare/v2.163.1...v2.164.0) (2024-10-24)
6+
7+
8+
### Features
9+
10+
* **cli:** add ability to configure hotswap properties for ECS ([#30511](https://github.com/aws/aws-cdk/issues/30511)) ([fee2cf8](https://github.com/aws/aws-cdk/commit/fee2cf88c58c6c1f25b9e6fad87c8042de464fd9)), closes [#29618](https://github.com/aws/aws-cdk/issues/29618)
11+
* **cognito:** support email based MFA ([#31816](https://github.com/aws/aws-cdk/issues/31816)) ([f9d6eef](https://github.com/aws/aws-cdk/commit/f9d6eefd52d5bdc63ff2be844f567e8f1d0b4258)), closes [#31815](https://github.com/aws/aws-cdk/issues/31815)
12+
* **cognito:** the Cognito Identity Pools module is now in Developer Preview ([#31854](https://github.com/aws/aws-cdk/issues/31854)) ([b22899f](https://github.com/aws/aws-cdk/commit/b22899f9dee04d5c446ebcdfff810a954ac08dc6))
13+
14+
15+
### Bug Fixes
16+
17+
* **cli:** cross-account asset publishing doesn't work without bootstrap stack ([#31876](https://github.com/aws/aws-cdk/issues/31876)) ([427bf63](https://github.com/aws/aws-cdk/commit/427bf630cb2e28ec98477b313eef32d5b9b91525)), closes [#31866](https://github.com/aws/aws-cdk/issues/31866)
18+
* **cli:** deploy-role is not authorized to perform DescribeStackResources ([#31878](https://github.com/aws/aws-cdk/issues/31878)) ([8d06824](https://github.com/aws/aws-cdk/commit/8d06824298d80b18c6b0143a9ac38b79ea5d6253))
19+
* **core:** fix policy synthesizer logic for precreated roles ([#31710](https://github.com/aws/aws-cdk/issues/31710)) ([aae03c9](https://github.com/aws/aws-cdk/commit/aae03c9f899ec2a77b841207ef0b4eb3a7e0ae00))
20+
* **dynamodb:** replication regions are incompatible with resource policies in TableV2 and feature flag ([#31513](https://github.com/aws/aws-cdk/issues/31513)) ([0b03eb0](https://github.com/aws/aws-cdk/commit/0b03eb0f62c132c1bd586a8ec31818398d07707f)), closes [#30705](https://github.com/aws/aws-cdk/issues/30705)
21+
* **events-targets:** kinesis Stream target with Customer-Managed KMS key causes EventBridge FailedInvocations ([#31836](https://github.com/aws/aws-cdk/issues/31836)) ([58dfda0](https://github.com/aws/aws-cdk/commit/58dfda087a8aabde2683cd99df005d6e5e73a7ce)), closes [#10996](https://github.com/aws/aws-cdk/issues/10996)
22+
523
## [2.163.1](https://github.com/aws/aws-cdk/compare/v2.163.0...v2.163.1) (2024-10-22)
624

725

packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/cli.integtest.ts

+52
Original file line numberDiff line numberDiff line change
@@ -2301,6 +2301,58 @@ integTest('hotswap deployment supports AppSync APIs with many functions',
23012301
}),
23022302
);
23032303

2304+
integTest('hotswap ECS deployment respects properties override', withDefaultFixture(async (fixture) => {
2305+
// Update the CDK context with the new ECS properties
2306+
let ecsMinimumHealthyPercent = 100;
2307+
let ecsMaximumHealthyPercent = 200;
2308+
let cdkJson = JSON.parse(await fs.readFile(path.join(fixture.integTestDir, 'cdk.json'), 'utf8'));
2309+
cdkJson = {
2310+
...cdkJson,
2311+
hotswap: {
2312+
ecs: {
2313+
minimumHealthyPercent: ecsMinimumHealthyPercent,
2314+
maximumHealthyPercent: ecsMaximumHealthyPercent,
2315+
},
2316+
},
2317+
};
2318+
2319+
await fs.writeFile(path.join(fixture.integTestDir, 'cdk.json'), JSON.stringify(cdkJson));
2320+
2321+
// GIVEN
2322+
const stackArn = await fixture.cdkDeploy('ecs-hotswap', {
2323+
captureStderr: false,
2324+
});
2325+
2326+
// WHEN
2327+
await fixture.cdkDeploy('ecs-hotswap', {
2328+
options: [
2329+
'--hotswap',
2330+
],
2331+
modEnv: {
2332+
DYNAMIC_ECS_PROPERTY_VALUE: 'new value',
2333+
},
2334+
});
2335+
2336+
const describeStacksResponse = await fixture.aws.cloudFormation.send(
2337+
new DescribeStacksCommand({
2338+
StackName: stackArn,
2339+
}),
2340+
);
2341+
2342+
const clusterName = describeStacksResponse.Stacks?.[0].Outputs?.find(output => output.OutputKey == 'ClusterName')?.OutputValue!;
2343+
const serviceName = describeStacksResponse.Stacks?.[0].Outputs?.find(output => output.OutputKey == 'ServiceName')?.OutputValue!;
2344+
2345+
// THEN
2346+
const describeServicesResponse = await fixture.aws.ecs.send(
2347+
new DescribeServicesCommand({
2348+
cluster: clusterName,
2349+
services: [serviceName],
2350+
}),
2351+
);
2352+
expect(describeServicesResponse.services?.[0].deploymentConfiguration?.minimumHealthyPercent).toEqual(ecsMinimumHealthyPercent);
2353+
expect(describeServicesResponse.services?.[0].deploymentConfiguration?.maximumPercent).toEqual(ecsMaximumHealthyPercent);
2354+
}));
2355+
23042356
async function listChildren(parent: string, pred: (x: string) => Promise<boolean>) {
23052357
const ret = new Array<string>();
23062358
for (const child of await fs.readdir(parent, { encoding: 'utf-8' })) {

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.asset-build-spec.js.snapshot/CodeBuildAssetBuildSpecStack.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
},
174174
"Environment": {
175175
"ComputeType": "BUILD_GENERAL1_SMALL",
176-
"Image": "aws/codebuild/standard:1.0",
176+
"Image": "aws/codebuild/standard:7.0",
177177
"ImagePullCredentialsType": "CODEBUILD",
178178
"PrivilegedMode": false,
179179
"Type": "LINUX_CONTAINER"
@@ -254,4 +254,4 @@
254254
]
255255
}
256256
}
257-
}
257+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.caching.js.snapshot/aws-cdk-codebuild.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
},
141141
"Environment": {
142142
"ComputeType": "BUILD_GENERAL1_SMALL",
143-
"Image": "aws/codebuild/standard:1.0",
143+
"Image": "aws/codebuild/standard:7.0",
144144
"ImagePullCredentialsType": "CODEBUILD",
145145
"PrivilegedMode": false,
146146
"Type": "LINUX_CONTAINER"
@@ -209,4 +209,4 @@
209209
]
210210
}
211211
}
212-
}
212+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.defaults.lit.js.snapshot/codebuild-default-project.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
},
133133
"Environment": {
134134
"ComputeType": "BUILD_GENERAL1_SMALL",
135-
"Image": "aws/codebuild/standard:1.0",
135+
"Image": "aws/codebuild/standard:7.0",
136136
"ImagePullCredentialsType": "CODEBUILD",
137137
"PrivilegedMode": false,
138138
"Type": "LINUX_CONTAINER"
@@ -188,4 +188,4 @@
188188
]
189189
}
190190
}
191-
}
191+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github-webhook-batch.js.snapshot/test-codebuild-github-webhook-batch.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
},
146146
"Environment": {
147147
"ComputeType": "BUILD_GENERAL1_SMALL",
148-
"Image": "aws/codebuild/standard:1.0",
148+
"Image": "aws/codebuild/standard:7.0",
149149
"ImagePullCredentialsType": "CODEBUILD",
150150
"PrivilegedMode": false,
151151
"Type": "LINUX_CONTAINER"
@@ -222,4 +222,4 @@
222222
]
223223
}
224224
}
225-
}
225+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.github.js.snapshot/test-codebuild-github.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
},
9999
"Environment": {
100100
"ComputeType": "BUILD_GENERAL1_SMALL",
101-
"Image": "aws/codebuild/standard:1.0",
101+
"Image": "aws/codebuild/standard:7.0",
102102
"ImagePullCredentialsType": "CODEBUILD",
103103
"PrivilegedMode": false,
104104
"Type": "LINUX_CONTAINER"
@@ -155,4 +155,4 @@
155155
]
156156
}
157157
}
158-
}
158+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-bucket.js.snapshot/aws-cdk-codebuild.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
},
134134
"Environment": {
135135
"ComputeType": "BUILD_GENERAL1_LARGE",
136-
"Image": "aws/codebuild/standard:1.0",
136+
"Image": "aws/codebuild/standard:7.0",
137137
"ImagePullCredentialsType": "CODEBUILD",
138138
"PrivilegedMode": false,
139139
"Type": "LINUX_CONTAINER"
@@ -199,4 +199,4 @@
199199
]
200200
}
201201
}
202-
}
202+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-buildspec-artifacts.js.snapshot/aws-cdk-codebuild-buildspec-artifact-name.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
},
149149
"Environment": {
150150
"ComputeType": "BUILD_GENERAL1_SMALL",
151-
"Image": "aws/codebuild/standard:1.0",
151+
"Image": "aws/codebuild/standard:7.0",
152152
"ImagePullCredentialsType": "CODEBUILD",
153153
"PrivilegedMode": false,
154154
"Type": "LINUX_CONTAINER"
@@ -204,4 +204,4 @@
204204
]
205205
}
206206
}
207-
}
207+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-file-system-location.js.snapshot/aws-cdk-codebuild-file-system-locations.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@
383383
},
384384
"Environment": {
385385
"ComputeType": "BUILD_GENERAL1_SMALL",
386-
"Image": "aws/codebuild/standard:1.0",
386+
"Image": "aws/codebuild/standard:7.0",
387387
"ImagePullCredentialsType": "CODEBUILD",
388388
"PrivilegedMode": true,
389389
"Type": "LINUX_CONTAINER"
@@ -509,4 +509,4 @@
509509
]
510510
}
511511
}
512-
}
512+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-logging.js.snapshot/aws-cdk-codebuild-logging.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
},
193193
"Environment": {
194194
"ComputeType": "BUILD_GENERAL1_SMALL",
195-
"Image": "aws/codebuild/standard:1.0",
195+
"Image": "aws/codebuild/standard:7.0",
196196
"ImagePullCredentialsType": "CODEBUILD",
197197
"PrivilegedMode": false,
198198
"Type": "LINUX_CONTAINER"
@@ -261,4 +261,4 @@
261261
]
262262
}
263263
}
264-
}
264+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-notification.js.snapshot/aws-cdk-codebuild-project-vpc.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
},
133133
"Environment": {
134134
"ComputeType": "BUILD_GENERAL1_SMALL",
135-
"Image": "aws/codebuild/standard:1.0",
135+
"Image": "aws/codebuild/standard:7.0",
136136
"ImagePullCredentialsType": "CODEBUILD",
137137
"PrivilegedMode": false,
138138
"Type": "LINUX_CONTAINER"
@@ -241,4 +241,4 @@
241241
]
242242
}
243243
}
244-
}
244+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-secondary-sources-artifacts.js.snapshot/aws-cdk-codebuild-secondary-sources-artifacts.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
},
171171
"Environment": {
172172
"ComputeType": "BUILD_GENERAL1_SMALL",
173-
"Image": "aws/codebuild/standard:1.0",
173+
"Image": "aws/codebuild/standard:7.0",
174174
"ImagePullCredentialsType": "CODEBUILD",
175175
"PrivilegedMode": false,
176176
"Type": "LINUX_CONTAINER"
@@ -256,4 +256,4 @@
256256
]
257257
}
258258
}
259-
}
259+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-visibility.js.snapshot/codebuild-visibility.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
"EncryptionKey": "alias/aws/s3",
172172
"Environment": {
173173
"ComputeType": "BUILD_GENERAL1_SMALL",
174-
"Image": "aws/codebuild/standard:1.0",
174+
"Image": "aws/codebuild/standard:7.0",
175175
"ImagePullCredentialsType": "CODEBUILD",
176176
"PrivilegedMode": false,
177177
"Type": "LINUX_CONTAINER"
@@ -234,4 +234,4 @@
234234
]
235235
}
236236
}
237-
}
237+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.project-vpc.js.snapshot/aws-cdk-codebuild-project-vpc.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@
383383
},
384384
"Environment": {
385385
"ComputeType": "BUILD_GENERAL1_SMALL",
386-
"Image": "aws/codebuild/standard:1.0",
386+
"Image": "aws/codebuild/standard:7.0",
387387
"ImagePullCredentialsType": "CODEBUILD",
388388
"PrivilegedMode": false,
389389
"Type": "LINUX_CONTAINER"
@@ -489,4 +489,4 @@
489489
]
490490
}
491491
}
492-
}
492+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group-delete-reports.js.snapshot/aws-cdk-report-group-delete-reports.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"EncryptionKey": "alias/aws/s3",
129129
"Environment": {
130130
"ComputeType": "BUILD_GENERAL1_SMALL",
131-
"Image": "aws/codebuild/standard:1.0",
131+
"Image": "aws/codebuild/standard:7.0",
132132
"ImagePullCredentialsType": "CODEBUILD",
133133
"PrivilegedMode": false,
134134
"Type": "LINUX_CONTAINER"
@@ -194,4 +194,4 @@
194194
]
195195
}
196196
}
197-
}
197+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codebuild/test/integ.report-group.js.snapshot/aws-cdk-report-group.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
},
149149
"Environment": {
150150
"ComputeType": "BUILD_GENERAL1_SMALL",
151-
"Image": "aws/codebuild/standard:1.0",
151+
"Image": "aws/codebuild/standard:7.0",
152152
"ImagePullCredentialsType": "CODEBUILD",
153153
"PrivilegedMode": false,
154154
"Type": "LINUX_CONTAINER"
@@ -225,4 +225,4 @@
225225
]
226226
}
227227
}
228-
}
228+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-batch.js.snapshot/aws-cdk-codepipeline-codebuild-batch.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@
482482
"EncryptionKey": "alias/aws/s3",
483483
"Environment": {
484484
"ComputeType": "BUILD_GENERAL1_SMALL",
485-
"Image": "aws/codebuild/standard:1.0",
485+
"Image": "aws/codebuild/standard:7.0",
486486
"ImagePullCredentialsType": "CODEBUILD",
487487
"PrivilegedMode": false,
488488
"Type": "LINUX_CONTAINER"
@@ -580,4 +580,4 @@
580580
]
581581
}
582582
}
583-
}
583+
}

packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-code-build-multiple-inputs-outputs.js.snapshot/aws-cdk-codepipeline-codebuild-multiple-inputs-outputs.template.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@
584584
"EncryptionKey": "alias/aws/s3",
585585
"Environment": {
586586
"ComputeType": "BUILD_GENERAL1_SMALL",
587-
"Image": "aws/codebuild/standard:1.0",
587+
"Image": "aws/codebuild/standard:7.0",
588588
"ImagePullCredentialsType": "CODEBUILD",
589589
"PrivilegedMode": false,
590590
"Type": "LINUX_CONTAINER"
@@ -635,4 +635,4 @@
635635
]
636636
}
637637
}
638-
}
638+
}

0 commit comments

Comments
 (0)