Skip to content

Commit 8e95c37

Browse files
authored
2 parents 06a0b19 + baf14fb commit 8e95c37

File tree

698 files changed

+16603
-3941
lines changed

Some content is hidden

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

698 files changed

+16603
-3941
lines changed

.devcontainer/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM jsii/superchain:1-buster-slim
1+
FROM jsii/superchain:1-buster-slim-node18
22

33
USER root
44

CHANGELOG.v2.alpha.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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.78.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.77.0-alpha.0...v2.78.0-alpha.0) (2023-05-03)
6+
57
## [2.77.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.76.0-alpha.0...v2.77.0-alpha.0) (2023-04-26)
68

79
## [2.76.1-alpha.0](https://github.com/aws/aws-cdk/compare/v2.76.0-alpha.0...v2.76.1-alpha.0) (2023-04-21)

CHANGELOG.v2.md

+28
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
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.78.0](https://github.com/aws/aws-cdk/compare/v2.77.0...v2.78.0) (2023-05-03)
6+
7+
8+
### Features
9+
10+
* **appsync:** L2 construct for EventBridge DataSource. ([#25369](https://github.com/aws/aws-cdk/issues/25369)) ([a0ad49d](https://github.com/aws/aws-cdk/commit/a0ad49df7b2536d800b4890ae0116e6ce26e6c55)), closes [#24809](https://github.com/aws/aws-cdk/issues/24809)
11+
* **cfnspec:** cloudformation spec v120.0.0 ([#25354](https://github.com/aws/aws-cdk/issues/25354)) ([9096602](https://github.com/aws/aws-cdk/commit/9096602385ef9ed84b27b54aab7b0b5a448706ce))
12+
* **codebuild:** add support for `aws/codebuild/amazonlinux2-aarch64-standard:3.0` ([#25351](https://github.com/aws/aws-cdk/issues/25351)) ([0d187c1](https://github.com/aws/aws-cdk/commit/0d187c1ef337d5a46c47c018dc85e43de897f095)), closes [#25334](https://github.com/aws/aws-cdk/issues/25334)
13+
* **ec2:** Prefixlist Constructs ([#25252](https://github.com/aws/aws-cdk/issues/25252)) ([b2dfac0](https://github.com/aws/aws-cdk/commit/b2dfac09ebbd1302ec0236e4710ca9fef6b34274)), closes [#24714](https://github.com/aws/aws-cdk/issues/24714)
14+
* **ec2:** restrict access to default security group (under feature flag) ([#25297](https://github.com/aws/aws-cdk/issues/25297)) ([d8272ef](https://github.com/aws/aws-cdk/commit/d8272ef30d64777f54a7a283caf49b1dc67be927)), closes [/docs.aws.amazon.com/securityhub/latest/userguide/ec2-controls.html#ec2-2](https://github.com/aws//docs.aws.amazon.com/securityhub/latest/userguide/ec2-controls.html/issues/ec2-2) [#19394](https://github.com/aws/aws-cdk/issues/19394)
15+
* **events:** Validate events rule name ([#25366](https://github.com/aws/aws-cdk/issues/25366)) ([5bdb012](https://github.com/aws/aws-cdk/commit/5bdb0128e8181cd3a33a118a1f121f67b0f78b20)), closes [#25352](https://github.com/aws/aws-cdk/issues/25352)
16+
* **rds:** add missing PerformanceInsightRetention options ([#25347](https://github.com/aws/aws-cdk/issues/25347)) ([1dbae20](https://github.com/aws/aws-cdk/commit/1dbae20bdc633ce580cab8f758a43bfba763c4f6))
17+
18+
19+
### Bug Fixes
20+
21+
* **api-gateway:** add validation to `variables` property on `Stage` resource ([#25267](https://github.com/aws/aws-cdk/issues/25267)) ([04427e3](https://github.com/aws/aws-cdk/commit/04427e37b8da8c6cc9d360edd66093c2a63e19fe)), closes [#3635](https://github.com/aws/aws-cdk/issues/3635)
22+
* **apigateway:** cannot use requestValidatorOptions multiple times (under feature flag) ([#25324](https://github.com/aws/aws-cdk/issues/25324)) ([2a49fd1](https://github.com/aws/aws-cdk/commit/2a49fd1703c4eda9497cc5d5061372a1466d1ab0)), closes [#7613](https://github.com/aws/aws-cdk/issues/7613)
23+
* **batch:** `ManagedEc2EcsComputeEnvironment` instance role missing managed policy ([#25279](https://github.com/aws/aws-cdk/issues/25279)) ([c81d115](https://github.com/aws/aws-cdk/commit/c81d115955dbb27ce873ed7c9d71cc0dc8eacf99)), closes [#25256](https://github.com/aws/aws-cdk/issues/25256)
24+
* **batch:** JobQueue uses wrong id for underlying CfnJobQueue ([#25269](https://github.com/aws/aws-cdk/issues/25269)) ([4cbb790](https://github.com/aws/aws-cdk/commit/4cbb7905d0419eb763e25b1d6de574b35ab60bc9)), closes [#25248](https://github.com/aws/aws-cdk/issues/25248)
25+
* **core:** output folder checksum is computed unnecessarily ([#25392](https://github.com/aws/aws-cdk/issues/25392)) ([f2294ba](https://github.com/aws/aws-cdk/commit/f2294ba5d17b31895267a672dcc7ec457cc779c7))
26+
* **ecs:** Allow scheduling DAEMON services even if no EC2 capacity attached to cluster ([#25306](https://github.com/aws/aws-cdk/issues/25306)) ([#25328](https://github.com/aws/aws-cdk/issues/25328)) ([96bb8ce](https://github.com/aws/aws-cdk/commit/96bb8ce6b3a45daf47d4d4dbf91fd6b69988bb7b))
27+
* **elasticloadbalancingv2:** the bucket policy for ELB access logging is too permissive ([#25345](https://github.com/aws/aws-cdk/issues/25345)) ([748e685](https://github.com/aws/aws-cdk/commit/748e6859ccab999e66768d40d34fef93884453ea)), closes [/docs.aws.amazon.com/securityhub/latest/userguide/s3-controls.html#s3-6](https://github.com/aws//docs.aws.amazon.com/securityhub/latest/userguide/s3-controls.html/issues/s3-6)
28+
* **iam:** Role.fromRoleName fails on AWS created roles ([#25389](https://github.com/aws/aws-cdk/issues/25389)) ([4c9ce9b](https://github.com/aws/aws-cdk/commit/4c9ce9b6aa88306feeac6ffb71c1342d8acf4349))
29+
* **integ-tests:** allow multiple AwsApiCalls with the same action and different parameters ([#25241](https://github.com/aws/aws-cdk/issues/25241)) ([75967e1](https://github.com/aws/aws-cdk/commit/75967e17b8ce3a9d1e0068a3aa210abb247191e6)), closes [#25014](https://github.com/aws/aws-cdk/issues/25014)
30+
* **s3-deployment:** doesn't work in ADC regions ([#25363](https://github.com/aws/aws-cdk/issues/25363)) ([432af34](https://github.com/aws/aws-cdk/commit/432af347772fb3bf0f51aae07f4deb0aeec55d81))
31+
* dns-validated-cert cr doesn't use node16 ([#25348](https://github.com/aws/aws-cdk/issues/25348)) ([ad71026](https://github.com/aws/aws-cdk/commit/ad7102683be92ab8d5ab985d34b2203921ab061b)), closes [#25335](https://github.com/aws/aws-cdk/issues/25335)
32+
533
## [2.77.0](https://github.com/aws/aws-cdk/compare/v2.76.0...v2.77.0) (2023-04-26)
634

735

CONTRIBUTING.md

+152-5
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ let us know if it's not up-to-date (even better, submit a PR with your correcti
5151

5252
The following steps describe how to set up the AWS CDK repository on your local machine.
5353
The alternative is to use [Gitpod](https://www.gitpod.io/), a Cloud IDE for your development.
54-
See [Gitpod section](#gitpod-alternative) on how to set up the CDK repo on Gitpod.
54+
See [Gitpod section](#gitpod) on how to set up the CDK repo on Gitpod.
5555

5656
### Setup
5757

@@ -92,7 +92,7 @@ CDK can be found at the location `packages/aws-cdk-lib/aws-iam`.
9292
The repo also contains the `tools/` directory that holds custom build tooling (modeled as private npm packages)
9393
specific to the CDK.
9494

95-
### Build
95+
### Building aws-cdk-lib
9696

9797
The full build of all of the packages within the repository can take a few minutes, about 20 when all tests are run.
9898
Most contributions only require working on a single package, usually `aws-cdk-lib`. To build this package for the first
@@ -162,7 +162,7 @@ Please follow the [setup instructions](https://code.visualstudio.com/docs/remote
162162

163163
With VS Code setup, you will be prompted to open the `aws-cdk` repo in a Dev Container, or you can choos "Dev Containers: Reopen in Container" from the VS Code command palette.
164164

165-
### Gitpod (Alternative)
165+
### Gitpod
166166

167167
You may also set up your local development environment using [Gitpod](http://gitpod.io) -
168168
a service that allows you to spin up an in-browser Visual Studio Code-compatible editor,
@@ -177,7 +177,22 @@ You can now work on your CDK repository, as described in the [Getting Started](#
177177
Gitpod is free for 50 hours per month - make sure to stop your workspace when you're done
178178
(you can always resume it later, and it won't need to run the build again).
179179

180-
For Gitpod users only! The best way to supply CDK with your AWS credentials is to add them as
180+
For Gitpod users only! The best way to authenticate AWS in Gitpod is to use AWS IAM Identity Center(successor to AWS Single Sign-On). [Install AWS CLI v2](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html#getting-started-install-instructions) and configure it as follows:
181+
182+
```shell
183+
# make sure AWS CLI v2 is in your $PATH
184+
$ aws --version
185+
# configure the AWS profile with SSO
186+
$ aws configure sso
187+
# login and authenticate
188+
$ aws sso login
189+
# verify your current identity
190+
$ aws sts get-caller-identity
191+
```
192+
193+
Check out [this document](https://docs.aws.amazon.com/cli/latest/userguide/sso-configure-profile-token.html) for the details.
194+
195+
Alternatively, supply CDK with your AWS credentials as
181196
[persisting environment variables](https://www.gitpod.io/docs/environment-variables).
182197
Adding them works as follows via terminal:
183198

@@ -188,6 +203,26 @@ eval $(gp env -e AWS_DEFAULT_REGION=ZZZZZZZZ)
188203
eval $(gp env -e)
189204
```
190205

206+
### Amazon CodeCatalyst Dev Environments
207+
208+
Dev Environments are cloud-based development environments.
209+
[Amazon CodeCatalyst](https://aws.amazon.com/codecatalyst/) allows you to checkout your linked Github
210+
repositories in your Dev Environments with your favorite local IDEs such as VSCode or JetBrains.
211+
212+
Build up `aws-cdk-lib` as well as `framework-integ` when you enter your Dev Env:
213+
214+
```shell
215+
$ yarn install
216+
$ NODE_OPTIONS=--max-old-space-size=8192 npx lerna run build --scope=aws-cdk-lib --scope=@aws-cdk-testing/framework-integ
217+
```
218+
219+
You may [configure your Dev Env](https://docs.aws.amazon.com/codecatalyst/latest/userguide/devenvironment-devfile.html) with the `devfile.yaml` to further customize your Dev Env for CDK development.
220+
221+
Read the links below for more details:
222+
- [Dev Environments in CodeCatalyst](https://docs.aws.amazon.com/codecatalyst/latest/userguide/devenvironment.html)
223+
- [Using GitHub repositories in CodeCatalyst](https://docs.aws.amazon.com/codecatalyst/latest/userguide/extensions-github.html)
224+
- [Setting up to use the AWS CLI with CodeCatalyst](https://docs.aws.amazon.com/codecatalyst/latest/userguide/set-up-cli.html)
225+
191226
## Pull Requests
192227

193228
Below is a flow chart that describes how your PR may be treated by repository maintainers:
@@ -279,6 +314,14 @@ Integration tests perform a few functions in the CDK code base -
279314
3. (Optionally) Acts as a way to validate that constructs set up the CloudFormation resources as expected. A successful
280315
CloudFormation deployment does not mean that the resources are set up correctly.
281316

317+
**Build framework-integ**
318+
319+
You need to build the `framework-integ` before running the `yarn integ`
320+
321+
```console
322+
$ npx lerna run build --scope=@aws-cdk-testing/framework-integ
323+
```
324+
282325
**When are integration tests required?**
283326

284327
The following list contains common scenarios where we _know_ that integration tests are required.
@@ -308,7 +351,7 @@ Examples:
308351
* [integ.destinations.ts](https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-lambda-destinations/test/integ.destinations.ts#L7)
309352
* [integ.put-events.ts](https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/aws-stepfunctions-tasks/test/eventbridge/integ.put-events.ts)
310353

311-
**What do do if you cannot run integration tests**
354+
**What if you cannot run integration tests**
312355

313356
If you are working on a PR that requires an update to an integration test and you are unable
314357
to run the `cdk-integ` tool to perform a real deployment, please call this out on the pull request
@@ -332,6 +375,110 @@ $ cd packages/aws-cdk
332375
$ yarn watch & # runs in the background
333376
```
334377

378+
#### Verify your fix by deployment
379+
380+
If your PR updates a specific library, you might want to write a simple CDK application and make sure it synthesizes and
381+
deploys correctly. For example, if you modify files under `packages/aws-cdk-lib/aws-eks`, you can write a simple CDK app in typescript to verify its behavior:
382+
383+
384+
```console
385+
$ cd packages/@aws-cdk-testing/framework-integ/test/aws-eks/test
386+
```
387+
388+
Create a `sample.ts` like this:
389+
390+
```ts
391+
import {
392+
App, Stack,
393+
aws_eks as eks,
394+
aws_ec2 as ec2,
395+
} from 'aws-cdk-lib';
396+
import { getClusterVersionConfig } from './integ-tests-kubernetes-version';
397+
398+
const app = new App();
399+
const env = { region: process.env.CDK_DEFAULT_REGION, account: process.env.CDK_DEFAULT_ACCOUNT };
400+
const stack = new Stack(app, 'my-test-stack', { env });
401+
402+
const cluster = new eks.Cluster(stack, 'Cluster', {
403+
vpc,
404+
...getClusterVersionConfig(stack),
405+
defaultCapacity: 0,
406+
});
407+
```
408+
409+
Run `yarn watch` or `npx tsc --watch` in a separate terminal to compile `sample.ts` to `sample.js`:
410+
411+
```console
412+
$ cd packages/@aws-cdk-testing/framework-integ
413+
$ yarn watch
414+
or
415+
$ npx tsc --watch
416+
```
417+
418+
Make sure you have configured [AWS CLI with AWS Authentication](https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html#getting_started_auth) as we will deploy it in our AWS account.
419+
420+
Deploy the sample app:
421+
422+
```console
423+
$ cd packages/@aws-cdk-testing/framework-integ
424+
$ npx cdk -a test/aws-eks/test/sample.js diff
425+
$ npx cdk -a test/aws-eks/test/sample.js deploy
426+
```
427+
428+
This allows you to iterate your development and ensure a minimal sample app would successfully deploy as you expect.
429+
You have the freedom to interact with it just as a common CDK app such as viewing differences with `npx cdk diff`
430+
or pass context variables with `npx cdk deploy -c`. You can rapidly iterate your testing with repeated deployments
431+
by importing existing resource such as existing VPC. This can save a lot of time and help you focus on the core changes.
432+
433+
```ts
434+
const vpc = ec2.Vpc.fromLookup(stack, 'Vpc', { isDefault: true });
435+
```
436+
437+
As this is for testing only, do not commit `sample.ts` and `sample.js` to your PR branch.
438+
439+
Alternatively, you can write this test as a new integration test like `integ.my-test.ts` and deploy it
440+
using `yarn integ --no-clean`. This may be useful when you need to publish a new
441+
integration test:
442+
443+
```console
444+
$ cd packages/@aws-cdk-testing/framework-integ
445+
$ yarn integ test/aws-eks/test/integ.my-test.js --no-clean --update-on-failed
446+
```
447+
448+
After verifying your work with a simple deployment as above, you need to ensure your change can pass all existing
449+
unit tests and integ tests and fix them if necessary.
450+
451+
Run all the unit tests for a specific module(e.g. aws-eks):
452+
453+
```console
454+
$ cd packages/aws-cdk-lib
455+
$ yarn test aws-eks
456+
```
457+
458+
Or run a specific unit test
459+
460+
```console
461+
$ cd packages/aws-cdk-lib
462+
$ npx jest aws-eks/test/name.test.js
463+
```
464+
465+
Run all integ tests for a specific module(e.g. aws-eks):
466+
467+
```console
468+
$ cd packages/@aws-cdk-testing/framework-integ
469+
$ yarn integ --directory test/aws-eks/test
470+
```
471+
472+
Or run a specific integ test:
473+
474+
```console
475+
$ yarn integ test/aws-eks/test/integ.name.js
476+
```
477+
478+
See the [integration test guide](./INTEGRATION_TESTS.md) for a more complete guide on running
479+
CDK integration tests.
480+
481+
335482
### Step 4: Pull Request
336483

337484
* Create a commit with your changes and push them to a

buildspec-pr.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ version: 0.2
22

33
# This buildspec is intended to be used by GitHub PR builds.
44

5+
env:
6+
variables:
7+
PR_BUILD: true
8+
59
phases:
610
install:
711
commands:

lerna.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"useWorkspaces": true,
44
"packages": [
55
"packages/aws-cdk-lib",
6-
"packages/cdk-cli-wrapper",
76
"packages/cdk-assets",
87
"packages/aws-cdk",
98
"packages/cdk",

pack.sh

+9-1
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,24 @@ function lerna_scopes() {
3838

3939
scripts/run-rosetta.sh --infuse --pkgs-from $TMPDIR/jsii.txt
4040

41+
# Execute any pre-package steps for the jsii modules here:
42+
echo "Running aws-cdk-lib pre-package"
43+
npx lerna run --scope aws-cdk-lib package -- --pre-only
44+
4145
# Jsii packaging (all at once using jsii-pacmak)
4246
echo "Packaging jsii modules" >&2
4347
$PACMAK \
4448
--verbose \
4549
$(cat $TMPDIR/jsii.txt)
4650

51+
# Execute any post-package steps for the jsii modules here:
52+
echo "Running aws-cdk-lib post-package"
53+
npx lerna run --scope aws-cdk-lib package -- --post-only
54+
4755
# Non-jsii packaging, which means running 'package' in every individual
4856
# module
4957
echo "Packaging non-jsii modules" >&2
50-
lerna run $(lerna_scopes $(cat $TMPDIR/nonjsii.txt)) --sort --concurrency=1 --stream package
58+
npx lerna run $(lerna_scopes $(cat $TMPDIR/nonjsii.txt)) --sort --concurrency=1 --stream package
5159

5260
# Finally rsync all 'dist' directories together into a global 'dist' directory
5361
for dir in $(find packages -name dist | grep -v node_modules | grep -v run-wrappers); do

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"build-all": "tsc -b"
1616
},
1717
"devDependencies": {
18+
"@nrwl/cli": "^15.9.1",
19+
"@nrwl/workspace": "^15.9.1",
1820
"@types/node": "18.11.19",
1921
"@types/prettier": "2.6.0",
2022
"@yarnpkg/lockfile": "^1.1.0",
@@ -28,12 +30,10 @@
2830
"jsii-reflect": "1.78.1",
2931
"jsii-rosetta": "~5.0.7",
3032
"lerna": "^6.6.1",
33+
"nx": "^15.9.1",
3134
"patch-package": "^6.5.1",
3235
"semver": "^6.3.0",
3336
"standard-version": "^9.5.0",
34-
"@nrwl/cli": "^15.9.1",
35-
"@nrwl/workspace": "^15.9.1",
36-
"nx": "^15.9.1",
3737
"typescript": "~4.9.5"
3838
},
3939
"resolutions": {
@@ -69,7 +69,6 @@
6969
"workspaces": {
7070
"packages": [
7171
"packages/aws-cdk-lib",
72-
"packages/cdk-cli-wrapper",
7372
"packages/aws-cdk",
7473
"packages/cdk",
7574
"packages/cdk-assets",

packages/@aws-cdk-testing/framework-integ/test/aws-apigateway/test/integ.restapi.vpc-endpoint.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Test extends cdk.Stack {
1313
constructor(scope: cdk.App, id: string) {
1414
super(scope, id);
1515

16-
const vpc = new ec2.Vpc(this, 'MyVpc', {});
16+
const vpc = new ec2.Vpc(this, 'MyVpc', { restrictDefaultSecurityGroup: false });
1717

1818
const vpcEndpoint = vpc.addInterfaceEndpoint('MyVpcEndpoint', {
1919
service: ec2.InterfaceVpcEndpointAwsService.APIGATEWAY,

packages/@aws-cdk-testing/framework-integ/test/aws-appmesh/test/integ.mesh.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const app = new cdk.App();
88
const stack = new cdk.Stack(app, 'mesh-stack', {});
99

1010
const vpc = new ec2.Vpc(stack, 'vpc', {
11+
restrictDefaultSecurityGroup: false,
1112
natGateways: 1,
1213
});
1314

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
schema {
2+
query: Query
3+
mutation: Mutation
4+
}
5+
6+
type Query {
7+
event(id:ID!): Event
8+
}
9+
10+
type Mutation {
11+
emitEvent(id: ID!, name: String): PutEventsResult!
12+
}
13+
14+
type Event {
15+
id: ID!
16+
name: String!
17+
}
18+
19+
type Entry {
20+
ErrorCode: String
21+
ErrorMessage: String
22+
EventId: String
23+
}
24+
25+
type PutEventsResult {
26+
Entries: [Entry!]
27+
FailedEntry: Int
28+
}

0 commit comments

Comments
 (0)