Skip to content

Commit db41d9f

Browse files
authored
Merge branch 'main' into mrgrain/chore/toolkit-interfaces
2 parents 99b9dcb + fcf37ee commit db41d9f

Some content is hidden

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

42 files changed

+2509
-156
lines changed

CHANGELOG.v2.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,11 @@ All notable changes to this project will be documented in this file. See [standa
5050

5151
* **apigateway:** We will be removing deprecated `APIGatewayV2` constructs from `aws-apigateway` module.
5252

53-
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
5453

5554
### Features
5655

57-
* **aspects:** priority-ordered aspect invocation ([#32097](https://github.com/aws/aws-cdk/issues/32097)) ([8ccdff4](https://github.com/aws/aws-cdk/commit/8ccdff4ee083d66f73259223ba75ba0b8a0752a0)), closes [#21341](https://github.com/aws/aws-cdk/issues/21341) [/github.com/aws/aws-cdk/blob/8b495f9ec157c0b00674715f62b1bbcabf2096ac/packages/aws-cdk-lib/core/lib/private/synthesis.ts#L217](https://github.com/aws//github.com/aws/aws-cdk/blob/8b495f9ec157c0b00674715f62b1bbcabf2096ac/packages/aws-cdk-lib/core/lib/private/synthesis.ts/issues/L217)
58-
* **cognito:** new `cloudFrontEndpoint` method for user pool domain without custom resource ([#31402](https://github.com/aws/aws-cdk/issues/31402)) ([deeb2ad](https://github.com/aws/aws-cdk/commit/deeb2ad0bc38101a9f1fa8162ad5d6008900a98d)), closes [#31342](https://github.com/aws/aws-cdk/issues/31342) [/github.com/go-to-k/aws-cdk/blob/fcbdc769e681f1f915cdc8cd7aa3a565d807884d/packages/aws-cdk-lib/aws-route53-targets/lib/userpool-domain.ts#L14](https://github.com/aws//github.com/go-to-k/aws-cdk/blob/fcbdc769e681f1f915cdc8cd7aa3a565d807884d/packages/aws-cdk-lib/aws-route53-targets/lib/userpool-domain.ts/issues/L14)
56+
* **aspects:** priority-ordered aspect invocation ([#32097](https://github.com/aws/aws-cdk/issues/32097)) ([8ccdff4](https://github.com/aws/aws-cdk/commit/8ccdff4ee083d66f73259223ba75ba0b8a0752a0)), closes [#21341](https://github.com/aws/aws-cdk/issues/21341)
57+
* **cognito:** new `cloudFrontEndpoint` method for user pool domain without custom resource ([#31402](https://github.com/aws/aws-cdk/issues/31402)) ([deeb2ad](https://github.com/aws/aws-cdk/commit/deeb2ad0bc38101a9f1fa8162ad5d6008900a98d)), closes [#31342](https://github.com/aws/aws-cdk/issues/31342)
5958
* **cognito:** support for ALLOW_USER_AUTH explicit auth flow ([#32273](https://github.com/aws/aws-cdk/issues/32273)) ([c5bcfdc](https://github.com/aws/aws-cdk/commit/c5bcfdc57aa763539b31f4e7f6f115f707c401a4))
6059
* **elasticloadbalancingv2:** ip address type for both network and application target group ([#32189](https://github.com/aws/aws-cdk/issues/32189)) ([7cc5f30](https://github.com/aws/aws-cdk/commit/7cc5f305c839048454240f8d6db1614e2dfa4c53))
6160
* **events:** add filter rules for prefixEqualsIgnoreCase, suffixEqualsIgnoreCase, wildcard, and anythingBut* matches ([#32063](https://github.com/aws/aws-cdk/issues/32063)) ([0ce71fc](https://github.com/aws/aws-cdk/commit/0ce71fc50cffffc04d9d1bc9c98c9c04e77bfe1f)), closes [#28462](https://github.com/aws/aws-cdk/issues/28462)
@@ -72,14 +71,14 @@ All notable changes to this project will be documented in this file. See [standa
7271
* **apigateway:** remove deprecated apigatewayv2 from aws-apigateway module ([#32297](https://github.com/aws/aws-cdk/issues/32297)) ([4db9565](https://github.com/aws/aws-cdk/commit/4db956597b41bb9d7dd8e1d65b39643772065353))
7372
* **appsync:** `appsync.HttpDataSourceProps` erroneously extends `BaseDataSourceProps` ([#32065](https://github.com/aws/aws-cdk/issues/32065)) ([4e7f5c4](https://github.com/aws/aws-cdk/commit/4e7f5c4469509ed4e1d586a9c5263f19b540a7bd)), closes [#29689](https://github.com/aws/aws-cdk/issues/29689)
7473
* **cli:** assume role calls are skipping the proxy ([#32291](https://github.com/aws/aws-cdk/issues/32291)) ([6c0f74e](https://github.com/aws/aws-cdk/commit/6c0f74e4b37b8ef81c927adca1112680d0bf2ad0))
75-
* **cli:** lambda hotswap fails if `lambda:GetFunctionConfiguration` action is not allowed ([#32301](https://github.com/aws/aws-cdk/issues/32301)) ([be000a2](https://github.com/aws/aws-cdk/commit/be000a251b781b0b0870930992793df5a2fc4b01)), closes [/github.com/aws/aws-sdk-js-v3/blob/main/clients/client-lambda/src/waiters/waitForFunctionUpdatedV2.ts#L10](https://github.com/aws//github.com/aws/aws-sdk-js-v3/blob/main/clients/client-lambda/src/waiters/waitForFunctionUpdatedV2.ts/issues/L10) [/github.com/aws/aws-sdk-js-v3/blob/main/clients/client-lambda/src/waiters/waitForFunctionUpdated.ts#L13](https://github.com/aws//github.com/aws/aws-sdk-js-v3/blob/main/clients/client-lambda/src/waiters/waitForFunctionUpdated.ts/issues/L13)
74+
* **cli:** lambda hotswap fails if `lambda:GetFunctionConfiguration` action is not allowed ([#32301](https://github.com/aws/aws-cdk/issues/32301)) ([be000a2](https://github.com/aws/aws-cdk/commit/be000a251b781b0b0870930992793df5a2fc4b01)), closes [#32219](https://github.com/aws/aws-cdk/issues/32219)
7675
* **cli:** mfa code is not requested when `$AWS_PROFILE` is used ([#32313](https://github.com/aws/aws-cdk/issues/32313)) ([6458439](https://github.com/aws/aws-cdk/commit/6458439b08f9ce1f49c1137dd85bb582550a5f52)), closes [#32312](https://github.com/aws/aws-cdk/issues/32312)
7776
* **cli:** remove source maps ([#32317](https://github.com/aws/aws-cdk/issues/32317)) ([512cf95](https://github.com/aws/aws-cdk/commit/512cf952f3971cd302fb1cca7c24149b43832280)), closes [#19930](https://github.com/aws/aws-cdk/issues/19930) [#19930](https://github.com/aws/aws-cdk/issues/19930)
7877
* **cli:** short-lived credentials are not refreshed ([#32354](https://github.com/aws/aws-cdk/issues/32354)) ([058a0bf](https://github.com/aws/aws-cdk/commit/058a0bfc22036230252fcbc026576260723f6d28))
7978
* **cli:** warns about missing `--no-rollback` flag that is present ([#32309](https://github.com/aws/aws-cdk/issues/32309)) ([559d676](https://github.com/aws/aws-cdk/commit/559d676e2989739b38491b1f767face839d39f69)), closes [#32295](https://github.com/aws/aws-cdk/issues/32295)
8079
* **cloudformation-include:** drops unknown policy attributes ([#32321](https://github.com/aws/aws-cdk/issues/32321)) ([20edc7f](https://github.com/aws/aws-cdk/commit/20edc7fe5e891461a8188d306dcc0f776041cf8f))
8180
* **cloudfront:** propagate `originAccessControlId` CloudFront Origin property to CloudFormation templates ([#32020](https://github.com/aws/aws-cdk/issues/32020)) ([f9708a6](https://github.com/aws/aws-cdk/commit/f9708a634ceaef7f62e8193443ea30fe9e2fbad6)), closes [#32018](https://github.com/aws/aws-cdk/issues/32018)
82-
* **iam:** `Role.addManagedPolicy()` does not work for imported roles `IRole` [#8307](https://github.com/aws/aws-cdk/issues/8307) ([#31212](https://github.com/aws/aws-cdk/issues/31212)) ([c78ef1b](https://github.com/aws/aws-cdk/commit/c78ef1b43a18e1ffc93fcbdee9dd2e91fa750a36)), closes [/github.com/aws/aws-cdk/blob/823ff6e03899f790a4cb1c43f92a02cc906ac356/packages/aws-cdk-lib/aws-iam/lib/identity-base.ts#L17-L21](https://github.com/aws//github.com/aws/aws-cdk/blob/823ff6e03899f790a4cb1c43f92a02cc906ac356/packages/aws-cdk-lib/aws-iam/lib/identity-base.ts/issues/L17-L21)
81+
* **iam:** `Role.addManagedPolicy()` does not work for imported roles `IRole` ([#31212](https://github.com/aws/aws-cdk/issues/31212)) ([c78ef1b](https://github.com/aws/aws-cdk/commit/c78ef1b43a18e1ffc93fcbdee9dd2e91fa750a36)), closes [#8307](https://github.com/aws/aws-cdk/issues/8307)
8382

8483
## [2.171.1](https://github.com/aws/aws-cdk/compare/v2.171.0...v2.171.1) (2024-11-27)
8584

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
require('./query-github.js');
2+
require('../lib/cli/query-github.js');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
require('./run-suite.js');
2+
require('../lib/cli/run-suite.js');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
require('./stage-distribution.js');
2+
require('../lib/cli/stage-distribution.js');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env node
2-
require('./test-root.js');
2+
require('../lib/cli/test-root.js');

packages/@aws-cdk-testing/cli-integ/bin/query-github.ts renamed to packages/@aws-cdk-testing/cli-integ/lib/cli/query-github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as yargs from 'yargs';
2-
import { fetchPreviousVersion } from '../lib/github';
2+
import { fetchPreviousVersion } from '../github';
33

44
async function main() {
55
const args = await yargs

packages/@aws-cdk-testing/cli-integ/bin/run-suite.ts renamed to packages/@aws-cdk-testing/cli-integ/lib/cli/run-suite.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
import * as path from 'path';
33
import * as jest from 'jest';
44
import * as yargs from 'yargs';
5-
import { ReleasePackageSourceSetup } from '../lib/package-sources/release-source';
6-
import { RepoPackageSourceSetup, autoFindRoot } from '../lib/package-sources/repo-source';
7-
import { IPackageSourceSetup } from '../lib/package-sources/source';
8-
import { serializeForSubprocess } from '../lib/package-sources/subprocess';
5+
import { ReleasePackageSourceSetup } from '../package-sources/release-source';
6+
import { RepoPackageSourceSetup, autoFindRoot } from '../package-sources/repo-source';
7+
import { IPackageSourceSetup } from '../package-sources/source';
8+
import { serializeForSubprocess } from '../package-sources/subprocess';
99

1010
async function main() {
1111
const args = await yargs
@@ -126,7 +126,7 @@ async function main() {
126126
...args.verbose ? ['--verbose'] : [],
127127
...passWithNoTests ? ['--passWithNoTests'] : [],
128128
...args['test-file'] ? [args['test-file']] : [],
129-
], path.resolve(__dirname, '..', 'resources', 'integ.jest.config.js'));
129+
], path.resolve(__dirname, '..', '..', 'resources', 'integ.jest.config.js'));
130130

131131
} finally {
132132
await packageSource.cleanup();

packages/@aws-cdk-testing/cli-integ/bin/stage-distribution.ts renamed to packages/@aws-cdk-testing/cli-integ/lib/cli/stage-distribution.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import * as path from 'path';
33
import * as fs from 'fs-extra';
44
import * as glob from 'glob';
55
import * as yargs from 'yargs';
6-
import { shell } from '../lib';
7-
import { TestRepository } from '../lib/staging/codeartifact';
8-
import { uploadJavaPackages, mavenLogin } from '../lib/staging/maven';
9-
import { uploadNpmPackages, npmLogin } from '../lib/staging/npm';
10-
import { uploadDotnetPackages, nugetLogin } from '../lib/staging/nuget';
11-
import { uploadPythonPackages, pypiLogin } from '../lib/staging/pypi';
12-
import { UsageDir } from '../lib/staging/usage-dir';
6+
import { shell } from '..';
7+
import { TestRepository } from '../staging/codeartifact';
8+
import { uploadJavaPackages, mavenLogin } from '../staging/maven';
9+
import { uploadNpmPackages, npmLogin } from '../staging/npm';
10+
import { uploadDotnetPackages, nugetLogin } from '../staging/nuget';
11+
import { uploadPythonPackages, pypiLogin } from '../staging/pypi';
12+
import { UsageDir } from '../staging/usage-dir';
1313

1414
async function main() {
1515
await yargs
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import * as path from 'path';
22
// eslint-disable-next-line no-console
3-
console.log(path.resolve(__dirname, '..'));
3+
console.log(path.resolve(__dirname, '..', '..'));

packages/@aws-cdk-testing/cli-integ/test/resource-pool.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@ const POOL_NAME = 'resource-pool.test';
88
test('take and dispose', async () => {
99
const pool = ResourcePool.withResources(POOL_NAME, ['a']);
1010
const take1 = pool.take();
11-
const take2 = pool.take();
1211

1312
let released = false;
1413

1514
const lease1 = await take1;
15+
16+
// We must start the take2 only after take1 has definitely
17+
// succeeded, otherwise we have a race condition if take2 happens to
18+
// win the race (we expect take1 to succeed and take2 to wait).
19+
const take2 = pool.take();
20+
1621
// awaiting 'take2' would now block but we add an async
1722
// handler to it to flip a boolean to see when it gets activated.
1823
void(take2.then(() => released = true));

0 commit comments

Comments
 (0)