Skip to content

Commit 6c90efc

Browse files
authored
2 parents fb74c41 + e425b88 commit 6c90efc

File tree

767 files changed

+109552
-23749
lines changed

Some content is hidden

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

767 files changed

+109552
-23749
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ Closes #<issue number here>.
1717
### Checklist
1818
- [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
1919

20-
<!--Does this PR includes breaking changes? If it does, list them here in the following format (notice how multiple breaking changes should be formatted):
21-
22-
```
23-
BREAKING CHANGE: Description of the breaking change, the previous behaviour, and the new behaviour.
24-
* **module-name:** Another breaking change
25-
* **module-name:** Yet another breaking change
26-
```
27-
-->
2820
----
2921

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

.github/workflows/auto-approve.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
permissions:
1313
pull-requests: write
1414
steps:
15-
- uses: hmarr/auto-approve-action@v3.2.1
15+
- uses: hmarr/auto-approve-action@v4.0.0
1616
with:
1717
github-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/spec-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
path: ${{ runner.temp }}
144144

145145
- name: Make Pull Request
146-
uses: peter-evans/create-pull-request@v5
146+
uses: peter-evans/create-pull-request@v6
147147
with:
148148
# Git commit details
149149
branch: automation/spec-update

.github/workflows/update-contributors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
CONTRIB_OUTPUT_FILE: 'CONTRIBUTORS.md'
1919
CONTRIB_IGNORE: 'github-actions[bot],mergify[bot],dependabot[bot],dependabot-preview[bot],aws-cdk-automation'
2020
- name: Create a PR
21-
uses: peter-evans/create-pull-request@v5
21+
uses: peter-evans/create-pull-request@v6
2222
with:
2323
# Git commit details
2424
branch: automation/update-contributors

.github/workflows/update-metadata-regions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
run: '[ -s ${{ runner.temp }}/update-spec.patch ] && git apply ${{ runner.temp }}/update-spec.patch || echo "Empty patch. Skipping."'
6060

6161
- name: Make Pull Request
62-
uses: peter-evans/create-pull-request@v5
62+
uses: peter-evans/create-pull-request@v6
6363
with:
6464
# Git commit details
6565
branch: automation/region-update

.github/workflows/yarn-upgrade.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
}}/upgrade.patch || echo "Empty patch. Skipping."'
117117

118118
- name: Make Pull Request
119-
uses: peter-evans/create-pull-request@v5
119+
uses: peter-evans/create-pull-request@v6
120120
with:
121121
# Git commit details
122122
branch: automation/yarn-upgrade

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.v2.alpha.md

Lines changed: 13 additions & 0 deletions
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.127.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.126.0-alpha.0...v2.127.0-alpha.0) (2024-02-09)
6+
7+
8+
### Features
9+
10+
* **pipes-sources:** new EventBridge Pipes sources alpha module ([#29048](https://github.com/aws/aws-cdk/issues/29048)) ([2e53568](https://github.com/aws/aws-cdk/commit/2e53568af8b3939413e2fe7b6d668a006b4a02d8))
11+
12+
13+
### Bug Fixes
14+
15+
* **appconfig:** deprecate deploy method ([#29021](https://github.com/aws/aws-cdk/issues/29021)) ([9675bcd](https://github.com/aws/aws-cdk/commit/9675bcdd22dda93258b2e2bfcd24b9ef5990e704))
16+
* **integ-tests:** cannot use v3 package name in an awsApiCall ([#28895](https://github.com/aws/aws-cdk/issues/28895)) ([5035080](https://github.com/aws/aws-cdk/commit/5035080ecc7e9e6029478496169344d5eb4b3300)), closes [/github.com/aws/aws-cdk/pull/27313/files#diff-3ab65cbf843775673ff370c9c90deceba5f0ead8a3e016e0c2f243d27bf84609](https://github.com/aws//github.com/aws/aws-cdk/pull/27313/files/issues/diff-3ab65cbf843775673ff370c9c90deceba5f0ead8a3e016e0c2f243d27bf84609) [#28844](https://github.com/aws/aws-cdk/issues/28844)
17+
518
## [2.126.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.125.0-alpha.0...v2.126.0-alpha.0) (2024-02-02)
619

720
## [2.125.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.124.0-alpha.0...v2.125.0-alpha.0) (2024-01-31)

CHANGELOG.v2.md

Lines changed: 2923 additions & 3235 deletions
Large diffs are not rendered by default.

CONTRIBUTORS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@ Shout out to our top contributors!
1111
- [corymhall](https://github.com/corymhall)
1212
- [shivlaks](https://github.com/shivlaks)
1313
- [otaviomacedo](https://github.com/otaviomacedo)
14-
- [madeline-k](https://github.com/madeline-k)
1514
- [mrgrain](https://github.com/mrgrain)
15+
- [madeline-k](https://github.com/madeline-k)
1616
- [NetaNir](https://github.com/NetaNir)
1717
- [comcalvi](https://github.com/comcalvi)
1818
- [robertd](https://github.com/robertd)
19-
- [pahud](https://github.com/pahud)
2019
- [MrArnoldPalmer](https://github.com/MrArnoldPalmer)
21-
- [peterwoodworth](https://github.com/peterwoodworth)
20+
- [pahud](https://github.com/pahud)
2221
- [TheRealAmazonKendra](https://github.com/TheRealAmazonKendra)
22+
- [peterwoodworth](https://github.com/peterwoodworth)
2323
- [lpizzinidev](https://github.com/lpizzinidev)
24-
- [colifran](https://github.com/colifran)
2524
- [go-to-k](https://github.com/go-to-k)
25+
- [colifran](https://github.com/colifran)
2626
- [nija-at](https://github.com/nija-at)
2727
- [hoegertn](https://github.com/hoegertn)
2828
- [watany-dev](https://github.com/watany-dev)
2929
- [jumic](https://github.com/jumic)
3030

3131

32-
_Last updated: Mon, 01 Jan 24 00:09:50 +0000_
32+
_Last updated: Thu, 01 Feb 24 00:09:34 +0000_

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ async function main() {
154154
}
155155

156156
async function validateDirectory(args: {
157-
DIRECTORY: string,
157+
DIRECTORY: string;
158158
}) {
159159
if (!await fs.pathExists(path.join(args.DIRECTORY, 'build.json'))) {
160160
throw new Error(`${args.DIRECTORY} does not look like a CDK dist directory (build.json missing)`);
@@ -191,7 +191,7 @@ async function doLogin(repo: TestRepository, usageDir: UsageDir, args: {
191191
}
192192

193193
async function publish(repo: TestRepository, usageDir: UsageDir, args: {
194-
DIRECTORY: string,
194+
DIRECTORY: string;
195195
npm?: boolean;
196196
python?: boolean;
197197
java?: boolean;

packages/@aws-cdk-testing/cli-integ/lib/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { Octokit } from '@octokit/rest';
22
import * as semver from 'semver';
33

44
export async function fetchPreviousVersion(token: string, options?: {
5-
priorTo?: string,
6-
majorVersion?: string,
5+
priorTo?: string;
6+
majorVersion?: string;
77
}) {
88
const github = new Octokit({ auth: token });
99
const releases = await github.repos.listReleases({

packages/@aws-cdk-testing/cli-integ/lib/staging/codeartifact.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ export class TestRepository {
170170
}
171171

172172
private async ensureRepository(name: string, options?: {
173-
readonly description?: string,
174-
readonly external?: string,
175-
readonly upstreams?: string[],
176-
readonly tags?: Record<string, string>,
173+
readonly description?: string;
174+
readonly external?: string;
175+
readonly upstreams?: string[];
176+
readonly tags?: Record<string, string>;
177177
}) {
178178
if (await this.repositoryExists(name)) { return; }
179179

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

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -599,76 +599,76 @@ integTest('cdk migrate generates migrate.json', withCDKMigrateFixture('typescrip
599599
await fixture.cdkDestroy(fixture.stackNamePrefix);
600600
}));
601601

602-
integTest('cdk migrate --from-scan with AND/OR filters correctly filters resources', withExtendedTimeoutFixture(async (fixture) => {
603-
const stackName = `cdk-migrate-integ-${fixture.randomString}`;
604-
605-
await fixture.cdkDeploy('migrate-stack', {
606-
modEnv: { SAMPLE_RESOURCES: '1' },
607-
});
608-
await fixture.cdk(
609-
['migrate', '--stack-name', stackName, '--from-scan', 'new', '--filter', 'type=AWS::SNS::Topic,tag-key=tag1', 'type=AWS::SQS::Queue,tag-key=tag3'],
610-
{ modEnv: { MIGRATE_INTEG_TEST: '1' }, neverRequireApproval: true, verbose: true, captureStderr: false },
611-
);
612-
613-
try {
614-
const response = await fixture.aws.cloudFormation('describeGeneratedTemplate', {
615-
GeneratedTemplateName: stackName,
616-
});
617-
const resourceNames = [];
618-
for (const resource of response.Resources || []) {
619-
if (resource.LogicalResourceId) {
620-
resourceNames.push(resource.LogicalResourceId);
621-
}
622-
}
623-
fixture.log(`Resources: ${resourceNames}`);
624-
expect(resourceNames.some(ele => ele && ele.includes('migratetopic1'))).toBeTruthy();
625-
expect(resourceNames.some(ele => ele && ele.includes('migratequeue1'))).toBeTruthy();
626-
} finally {
627-
await fixture.cdkDestroy('migrate-stack');
628-
await fixture.aws.cloudFormation('deleteGeneratedTemplate', {
629-
GeneratedTemplateName: stackName,
630-
});
631-
}
632-
}));
633-
634-
integTest('cdk migrate --from-scan for resources with Write Only Properties generates warnings', withExtendedTimeoutFixture(async (fixture) => {
635-
const stackName = `cdk-migrate-integ-${fixture.randomString}`;
636-
637-
await fixture.cdkDeploy('migrate-stack', {
638-
modEnv: {
639-
LAMBDA_RESOURCES: '1',
640-
},
641-
});
642-
await fixture.cdk(
643-
['migrate', '--stack-name', stackName, '--from-scan', 'new', '--filter', 'type=AWS::Lambda::Function,tag-key=lambda-tag'],
644-
{ modEnv: { MIGRATE_INTEG_TEST: '1' }, neverRequireApproval: true, verbose: true, captureStderr: false },
645-
);
646-
647-
try {
648-
649-
const response = await fixture.aws.cloudFormation('describeGeneratedTemplate', {
650-
GeneratedTemplateName: stackName,
651-
});
652-
const resourceNames = [];
653-
for (const resource of response.Resources || []) {
654-
if (resource.LogicalResourceId && resource.ResourceType === 'AWS::Lambda::Function') {
655-
resourceNames.push(resource.LogicalResourceId);
656-
}
657-
}
658-
fixture.log(`Resources: ${resourceNames}`);
659-
const readmePath = path.join(fixture.integTestDir, stackName, 'README.md');
660-
const readme = await fs.readFile(readmePath, 'utf8');
661-
expect(readme).toContain('## Warnings');
662-
for (const resourceName of resourceNames) {
663-
expect(readme).toContain(`### ${resourceName}`);
664-
}
665-
} finally {
666-
await fixture.cdkDestroy('migrate-stack');
667-
await fixture.aws.cloudFormation('deleteGeneratedTemplate', {
668-
GeneratedTemplateName: stackName,
669-
});
670-
}
671-
}));
602+
// integTest('cdk migrate --from-scan with AND/OR filters correctly filters resources', withExtendedTimeoutFixture(async (fixture) => {
603+
// const stackName = `cdk-migrate-integ-${fixture.randomString}`;
604+
605+
// await fixture.cdkDeploy('migrate-stack', {
606+
// modEnv: { SAMPLE_RESOURCES: '1' },
607+
// });
608+
// await fixture.cdk(
609+
// ['migrate', '--stack-name', stackName, '--from-scan', 'new', '--filter', 'type=AWS::SNS::Topic,tag-key=tag1', 'type=AWS::SQS::Queue,tag-key=tag3'],
610+
// { modEnv: { MIGRATE_INTEG_TEST: '1' }, neverRequireApproval: true, verbose: true, captureStderr: false },
611+
// );
612+
613+
// try {
614+
// const response = await fixture.aws.cloudFormation('describeGeneratedTemplate', {
615+
// GeneratedTemplateName: stackName,
616+
// });
617+
// const resourceNames = [];
618+
// for (const resource of response.Resources || []) {
619+
// if (resource.LogicalResourceId) {
620+
// resourceNames.push(resource.LogicalResourceId);
621+
// }
622+
// }
623+
// fixture.log(`Resources: ${resourceNames}`);
624+
// expect(resourceNames.some(ele => ele && ele.includes('migratetopic1'))).toBeTruthy();
625+
// expect(resourceNames.some(ele => ele && ele.includes('migratequeue1'))).toBeTruthy();
626+
// } finally {
627+
// await fixture.cdkDestroy('migrate-stack');
628+
// await fixture.aws.cloudFormation('deleteGeneratedTemplate', {
629+
// GeneratedTemplateName: stackName,
630+
// });
631+
// }
632+
// }));
633+
634+
// integTest('cdk migrate --from-scan for resources with Write Only Properties generates warnings', withExtendedTimeoutFixture(async (fixture) => {
635+
// const stackName = `cdk-migrate-integ-${fixture.randomString}`;
636+
637+
// await fixture.cdkDeploy('migrate-stack', {
638+
// modEnv: {
639+
// LAMBDA_RESOURCES: '1',
640+
// },
641+
// });
642+
// await fixture.cdk(
643+
// ['migrate', '--stack-name', stackName, '--from-scan', 'new', '--filter', 'type=AWS::Lambda::Function,tag-key=lambda-tag'],
644+
// { modEnv: { MIGRATE_INTEG_TEST: '1' }, neverRequireApproval: true, verbose: true, captureStderr: false },
645+
// );
646+
647+
// try {
648+
649+
// const response = await fixture.aws.cloudFormation('describeGeneratedTemplate', {
650+
// GeneratedTemplateName: stackName,
651+
// });
652+
// const resourceNames = [];
653+
// for (const resource of response.Resources || []) {
654+
// if (resource.LogicalResourceId && resource.ResourceType === 'AWS::Lambda::Function') {
655+
// resourceNames.push(resource.LogicalResourceId);
656+
// }
657+
// }
658+
// fixture.log(`Resources: ${resourceNames}`);
659+
// const readmePath = path.join(fixture.integTestDir, stackName, 'README.md');
660+
// const readme = await fs.readFile(readmePath, 'utf8');
661+
// expect(readme).toContain('## Warnings');
662+
// for (const resourceName of resourceNames) {
663+
// expect(readme).toContain(`### ${resourceName}`);
664+
// }
665+
// } finally {
666+
// await fixture.cdkDestroy('migrate-stack');
667+
// await fixture.aws.cloudFormation('deleteGeneratedTemplate', {
668+
// GeneratedTemplateName: stackName,
669+
// });
670+
// }
671+
// }));
672672

673673
['typescript', 'python', 'csharp', 'java'].forEach(language => {
674674
integTest(`cdk migrate --from-stack creates deployable ${language} app`, withExtendedTimeoutFixture(async (fixture) => {
@@ -746,7 +746,7 @@ integTest('enableDiffNoFail', withDefaultFixture(async (fixture) => {
746746
await fs.writeFile(path.join(fixture.integTestDir, 'cdk.json'), JSON.stringify(cdkJson));
747747
}
748748

749-
type DiffParameters = { fail?: boolean, enableDiffNoFail: boolean };
749+
type DiffParameters = { fail?: boolean; enableDiffNoFail: boolean };
750750
}));
751751

752752
integTest('cdk diff --fail on multiple stacks exits with error if any of the stacks contains a diff', withDefaultFixture(async (fixture) => {

packages/@aws-cdk-testing/framework-integ/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"aws-cdk-lib": "0.0.0",
4444
"aws-sdk": "^2.1548.0",
4545
"aws-sdk-mock": "5.6.0",
46-
"cdk8s": "2.68.32",
47-
"cdk8s-plus-27": "2.7.74",
46+
"cdk8s": "2.68.33",
47+
"cdk8s-plus-27": "2.7.75",
4848
"constructs": "^10.0.0"
4949
},
5050
"repository": {

packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.lambda.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const stack = new Stack(app, 'AuthorizerInteg');
1818
const authHandler = new lambda.Function(stack, 'auth-function', {
1919
runtime: lambda.Runtime.NODEJS_18_X,
2020
handler: 'index.handler',
21-
code: lambda.Code.fromAsset(path.join(__dirname, '../auth-handler')),
21+
code: lambda.Code.fromAsset(path.join(__dirname, '..', 'auth-handler')),
2222
});
2323

2424
const authorizer = new HttpLambdaAuthorizer('LambdaAuthorizer', authHandler, {
@@ -41,7 +41,7 @@ const httpApiWithDefaultAuthorizer = new HttpApi(stack, 'MyHttpApiWithDefaultAut
4141
const handler = new lambda.Function(stack, 'lambda', {
4242
runtime: lambda.Runtime.NODEJS_18_X,
4343
handler: 'index.handler',
44-
code: lambda.AssetCode.fromAsset(path.join(__dirname, '../integ.lambda.handler')),
44+
code: lambda.AssetCode.fromAsset(path.join(__dirname, '..', 'integ.lambda.handler')),
4545
});
4646

4747
httpApi.addRoutes({

packages/@aws-cdk-testing/framework-integ/test/aws-apigatewayv2-authorizers/test/http/integ.user-pool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const httpApiWithDefaultAuthorizer = new HttpApi(stack, 'MyHttpApiWithDefaultAut
3131
const handler = new lambda.Function(stack, 'lambda', {
3232
runtime: lambda.Runtime.NODEJS_18_X,
3333
handler: 'index.handler',
34-
code: lambda.AssetCode.fromAsset(path.join(__dirname, '../integ.user-pool.handler')),
34+
code: lambda.AssetCode.fromAsset(path.join(__dirname, '..', 'integ.user-pool.handler')),
3535
});
3636

3737
httpApi.addRoutes({

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.appsync-lambda.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const api = new appsync.GraphqlApi(stack, 'LambdaAPI', {
2828
});
2929

3030
const func = new lambda.Function(stack, 'func', {
31-
code: lambda.Code.fromAsset(path.join(__dirname, 'verify/lambda-tutorial')),
31+
code: lambda.Code.fromAsset(path.join(__dirname, 'verify', 'lambda-tutorial')),
3232
handler: 'lambda-tutorial.handler',
3333
runtime: STANDARD_NODEJS_RUNTIME,
3434
});

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.js-resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const integ = new IntegTest(app, 'JsResolverIntegTest', { testCases: [stack] });
5858
* Handler that calls our api with an `addTest` Mutation
5959
*/
6060
const invoke = new lambda.Function(stack, 'InvokeApi', {
61-
code: lambda.Code.fromAsset(path.join(__dirname, 'integ-assets/js-resolver-assertion')),
61+
code: lambda.Code.fromAsset(path.join(__dirname, 'integ-assets', 'js-resolver-assertion')),
6262
handler: 'index.handler',
6363
runtime: lambda.Runtime.NODEJS_18_X,
6464
});

packages/@aws-cdk-testing/framework-integ/test/aws-appsync/test/integ.lambda-auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class GraphQLApiLambdaAuthStack extends cdk.Stack {
1212

1313
const func = new lambda.Function(this, 'func', {
1414
code: lambda.Code.fromAsset(
15-
path.join(__dirname, 'verify/lambda-tutorial'),
15+
path.join(__dirname, 'verify', 'lambda-tutorial'),
1616
),
1717
handler: 'lambda-tutorial.handler',
1818
runtime: STANDARD_NODEJS_RUNTIME,

packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.cfn-template-from-repo.lit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const prodStage = {
5252
};
5353

5454
new codepipeline.Pipeline(stack, 'Pipeline', {
55+
crossAccountKeys: true,
5556
stages: [
5657
sourceStage,
5758
prodStage,

packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.lambda-deployed-through-codepipeline.lit.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ new lambda.Function(lambdaStack, 'Lambda', {
2020
// other resources that your Lambda needs, added to the lambdaStack...
2121

2222
const pipelineStack = new cdk.Stack(app, 'PipelineStack');
23-
const pipeline = new codepipeline.Pipeline(pipelineStack, 'Pipeline');
23+
const pipeline = new codepipeline.Pipeline(pipelineStack, 'Pipeline', {
24+
crossAccountKeys: true,
25+
});
2426

2527
// add the source code repository containing this code to your Pipeline,
2628
// and the source code of the Lambda Function, if they're separate

0 commit comments

Comments
 (0)