Skip to content

Commit 59f0379

Browse files
authored
Merge branch 'master' into patch-1
2 parents dec0ad4 + 131b472 commit 59f0379

322 files changed

Lines changed: 12144 additions & 3383 deletions

File tree

Some content is hidden

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

.gitallowed

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ account: '856666278305'
2323
account: '840364872350'
2424
account: '422531588944'
2525
account: '924023996002'
26+
account: '919366029133' #cn-north-1
27+
account: '919830735681' #cn-northwest-1
2628

2729
# The account IDs of password rotation applications of Serverless Application Repository
2830
# https://docs.aws.amazon.com/secretsmanager/latest/userguide/enable-rotation-rds.html

.github/workflows/README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# AWS CDK GitHub Actions
2+
3+
These workflows and actions are configured in the AWS CDK GitHub repository.
4+
5+
## Pull Request Triggered
6+
7+
### Auto Approve
8+
[auto-approve.yml](auto-approve.yml): Approves merging PRs with the
9+
`pr/auto-approve` label.
10+
Owner: Core CDK team
11+
12+
### PR Linter
13+
[pr-linter.yml](pr-linter.yml): Runs `tools/@aws-cdk-prlint` on each PR to
14+
check for correctness.
15+
Owner: Core CDK team
16+
17+
### v2-main PR automation
18+
[v2-pull-request.yml](v2-pull-request.yml): Runs `pkglint` on merge forward PRs
19+
and commits the results.
20+
Owner: Core CDK team
21+
22+
### Label Assigner
23+
[issue-label-assign.yml](issue-label-assign.yml): Github action for automatically adding labels and/or setting assignees when an Issue or PR is opened or edited based on user-defined Area
24+
Owner: CDK support team
25+
26+
## Issue Triggered
27+
28+
### Closed Issue Message
29+
[closed-issue-message.yml](closed-issue-message.yml): Adds a reminder message
30+
to issues that are closed.
31+
Owner: CDK support team
32+
33+
### Label Assigner
34+
[issue-label-assign.yml](issue-label-assign.yml): Github action for automatically adding labels and/or setting assignees when an Issue or PR is opened or edited based on user-defined Area
35+
Owner: CDK support team
36+
37+
## Scheduled Actions
38+
39+
### Issue Lifecycle Handling
40+
[close-stale-issues.yml](close-stale-issues.yml): Handles labeling issues and
41+
PRs with `closing-soon`, `response-requested`, etc.
42+
Owner: CDK support team
43+
44+
### Yarn Upgrader
45+
[yarn-upgrade.yml](yarn-upgrade.yml): Upgrades yarn dependencies and creates a
46+
patch file for downloading.
47+
Owner: Core CDK team

.github/workflows/auto-approve.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ on:
88
jobs:
99
auto-approve:
1010
if: >
11-
contains(github.event.pull_request.labels.*.name, 'pr/auto-approve') &&
12-
(github.event.pull_request.user.login == 'aws-cdk-automation'
13-
|| github.event.pull_request.user.login == 'dependabot[bot]'
14-
|| github.event.pull_request.user.login == 'dependabot-preview[bot]')
11+
github.event.pull_request.user.login == 'dependabot[bot]'
12+
|| github.event.pull_request.user.login == 'dependabot-preview[bot]'
13+
|| (contains(github.event.pull_request.labels.*.name, 'pr/auto-approve')
14+
&& github.event.pull_request.user.login == 'aws-cdk-automation')
1515
runs-on: ubuntu-latest
1616
permissions:
1717
pull-requests: write

.github/workflows/close-stale-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: "Close Stale Issues"
44
on:
55
workflow_dispatch:
66
schedule:
7-
- cron: "0 6 * * *"
7+
- cron: "0 */4 * * *"
88

99
jobs:
1010
cleanup:

.github/workflows/issue-label-assign.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
test:
1212
permissions:
1313
issues: write
14+
pull-requests: write
1415
runs-on: ubuntu-latest
1516
steps:
1617
- uses: peterwoodworth/issue-action@main

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ yarn-error.log
4545
.nzm-*
4646

4747
/.versionrc.json
48+
RELEASE_NOTES.md

.mergify.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
# See https://doc.mergify.io
2+
queue_rules:
3+
- name: default
4+
conditions:
5+
- status-success~=AWS CodeBuild us-east-1
26

37
pull_request_rules:
48
- name: label core
59
actions:
610
label:
711
add: [ contribution/core ]
812
conditions:
9-
- author~=^(eladb|RomainMuller|garnaat|nija-at|skinny85|rix0rrr|NGL321|Jerry-AWS|MrArnoldPalmer|NetaNir|iliapolo|njlynch|ericzbeard|ccfife|fulghum|pkandasamy91|SoManyHs|uttarasridhar|otaviomacedo|BenChaimberg|madeline-k|BryanPan342|kaizen3031593|comcalvi)$
13+
- author~=^(eladb|RomainMuller|garnaat|nija-at|skinny85|rix0rrr|NGL321|Jerry-AWS|MrArnoldPalmer|NetaNir|iliapolo|njlynch|ericzbeard|ccfife|fulghum|pkandasamy91|SoManyHs|uttarasridhar|otaviomacedo|BenChaimberg|madeline-k|BryanPan342|kaizen3031593|comcalvi|Chriscbr)$
1014
- -label~="contribution/core"
1115
- name: automatic merge
1216
actions:
1317
comment:
1418
message: Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to [allow changes to be pushed to your fork](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork)).
15-
merge:
16-
strict: smart
19+
queue:
20+
name: default
1721
method: squash
18-
strict_method: merge
1922
commit_message: title+body
2023
conditions:
2124
- base!=release

.yarnrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
--install.check-files true # install will verify file tree of packages for consistency
2+
3+
# Use the npm registry instead of yarns mirror.
4+
# npm treats registry.npmjs.org as a special value that means 'the current
5+
# configured package' in package-lock and npm-shrinkwrap. if we use
6+
# registry.yarnpkg.com in our shrinkwrap then users with a custom registry will
7+
# be forced to registry.yarnpkg.com.
8+
# https://github.com/npm/cli/issues/3783
9+
registry "https://registry.npmjs.org"
10+
ignore-engines true # the 'engines' key for 'aws-cdk-lib' has specifies node14 as min while v1 will remain at node10

CHANGELOG.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,72 @@
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+
## [1.128.0](https://github.com/aws/aws-cdk/compare/v1.127.0...v1.128.0) (2021-10-14)
6+
7+
8+
### ⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES
9+
10+
* **assertions:** Starting this release, the `assertions` module will be
11+
published to Maven with the name 'assertions' instead of
12+
'cdk-assertions'.
13+
14+
### Features
15+
16+
* **apigatewayv2-integrations:** http api - support for request parameter mapping ([#15630](https://github.com/aws/aws-cdk/issues/15630)) ([0452aed](https://github.com/aws/aws-cdk/commit/0452aed2f00198e05bd65b1d20246f7de0b24e20))
17+
* **cli:** hotswap deployments for ECS Services ([#16864](https://github.com/aws/aws-cdk/issues/16864)) ([ad7288f](https://github.com/aws/aws-cdk/commit/ad7288f35a17fcfbecd7080e99ece4873fa99ad2))
18+
* **codepipeline:** add support for string user parameters to the Lambda invoke action ([#16946](https://github.com/aws/aws-cdk/issues/16946)) ([e19ea31](https://github.com/aws/aws-cdk/commit/e19ea31dbf62446edaf5131c75246098ab05da6e)), closes [#16776](https://github.com/aws/aws-cdk/issues/16776)
19+
* **lambda:** docker platform for architecture ([#16858](https://github.com/aws/aws-cdk/issues/16858)) ([5c258a3](https://github.com/aws/aws-cdk/commit/5c258a30367a4922e404eb26e5aa076720846fbe))
20+
* **lambda-event-sources:** self managed kafka: support sasl/plain authentication ([#16712](https://github.com/aws/aws-cdk/issues/16712)) ([d4ad93f](https://github.com/aws/aws-cdk/commit/d4ad93f30877b26b851caa81d3a4a1d80df55164))
21+
* **stepfunctions-tasks:** AWS SDK service integrations ([#16746](https://github.com/aws/aws-cdk/issues/16746)) ([ae840ff](https://github.com/aws/aws-cdk/commit/ae840ff1abb8283a1290dae5859f5729a9cf72b1)), closes [#16780](https://github.com/aws/aws-cdk/issues/16780)
22+
23+
24+
### Bug Fixes
25+
26+
* **ecs:** add ASG capacity via Capacity Provider by not specifying machineImageType ([#16361](https://github.com/aws/aws-cdk/issues/16361)) ([93b3fdc](https://github.com/aws/aws-cdk/commit/93b3fdce80f0997d7b809f9ef7e3edd1e75e1f42)), closes [#16360](https://github.com/aws/aws-cdk/issues/16360)
27+
* **servicecatalog:** Allow users to create multiple product versions from assets. ([#16914](https://github.com/aws/aws-cdk/issues/16914)) ([958d755](https://github.com/aws/aws-cdk/commit/958d755ff7acaf016e3f8969bf5ab07d4dc2977b))
28+
* **codebuild:** add build image AMAZON_LINUX_2_ARM_2 ([#16931](https://github.com/aws/aws-cdk/issues/16931)) ([370cb31](https://github.com/aws/aws-cdk/commit/370cb310cce3fccc5381d8d53130e21b266de868)), closes [#16930](https://github.com/aws/aws-cdk/issues/16930)
29+
* **core:** asset hash is different between linux and windows ([#16945](https://github.com/aws/aws-cdk/issues/16945)) ([59950dd](https://github.com/aws/aws-cdk/commit/59950dd331635fb707aac819529614c0f3e47ee5)), closes [#14555](https://github.com/aws/aws-cdk/issues/14555) [#16928](https://github.com/aws/aws-cdk/issues/16928)
30+
* **ecs-patterns:** minScalingCapacity cannot be set to 0 ([#16961](https://github.com/aws/aws-cdk/issues/16961)) ([589f284](https://github.com/aws/aws-cdk/commit/589f284acec8530aa9824b75a5daef4632e98985)), closes [#15632](https://github.com/aws/aws-cdk/issues/15632) [#14336](https://github.com/aws/aws-cdk/issues/14336)
31+
* **ssm:** StringParameter accepts ParameterType.AWS_EC2_IMAGE_ID as type ([#16884](https://github.com/aws/aws-cdk/issues/16884)) ([2b353be](https://github.com/aws/aws-cdk/commit/2b353be5291cbcdc56a8863038eed4a5f2adc65f)), closes [#16806](https://github.com/aws/aws-cdk/issues/16806)
32+
* use registry.npmjs.com to fix shinkwrap resolves ([#16607](https://github.com/aws/aws-cdk/issues/16607)) ([8f91531](https://github.com/aws/aws-cdk/commit/8f91531c3c25900316d40d5564450566a03e27ee))
33+
34+
35+
### Miscellaneous Chores
36+
37+
* **assertions:** consistent naming in maven ([#16921](https://github.com/aws/aws-cdk/issues/16921)) ([0dcd9ec](https://github.com/aws/aws-cdk/commit/0dcd9eca3a1014c39f92d9e052b67974fc751af0))
38+
39+
## [1.127.0](https://github.com/aws/aws-cdk/compare/v1.126.0...v1.127.0) (2021-10-08)
40+
41+
42+
### ⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES
43+
44+
* **assertions:** `Match.absentProperty()` becomes `Match.absent()`, and its type changes from `string` to `Matcher`.
45+
46+
### Features
47+
48+
* **appsync:** Lambda Authorizer for AppSync GraphqlApi ([#16743](https://github.com/aws/aws-cdk/issues/16743)) ([bdbe8b6](https://github.com/aws/aws-cdk/commit/bdbe8b6cf6ab1ae261dddeb39576749e768183b3)), closes [#16380](https://github.com/aws/aws-cdk/issues/16380)
49+
* **chatbot:** allow adding a sns topic in existing SlackChannel ([#16643](https://github.com/aws/aws-cdk/issues/16643)) ([d29a20b](https://github.com/aws/aws-cdk/commit/d29a20bece48829e5dddbf3fd9045a96f1440c02)), closes [#15588](https://github.com/aws/aws-cdk/issues/15588)
50+
* **cfnspec:** cloudformation spec v43.0.0 ([#16748](https://github.com/aws/aws-cdk/issues/16748)) ([7c473a6](https://github.com/aws/aws-cdk/commit/7c473a6efa1f7e07799a96f649cb32f66d178e43))
51+
* **cli:** hotswap deployments for StepFunctions State Machines ([#16489](https://github.com/aws/aws-cdk/issues/16489)) ([c3417f6](https://github.com/aws/aws-cdk/commit/c3417f651e45170efd339960fbb0e4957bcbd3a3))
52+
* **ec2:** add X2gd instances ([#16810](https://github.com/aws/aws-cdk/issues/16810)) ([6d468d2](https://github.com/aws/aws-cdk/commit/6d468d2f742aad8bc9de6bfe9650c3cdccd30a32)), closes [#16794](https://github.com/aws/aws-cdk/issues/16794)
53+
* **ecr-assets:** control docker image asset hash ([#16070](https://github.com/aws/aws-cdk/issues/16070)) ([13f67e7](https://github.com/aws/aws-cdk/commit/13f67e7dbcf2ca7a921e7ffb932f260c74005408)), closes [#15936](https://github.com/aws/aws-cdk/issues/15936)
54+
* **elbv2:** support ALB target for NLB ([#16687](https://github.com/aws/aws-cdk/issues/16687)) ([27cc821](https://github.com/aws/aws-cdk/commit/27cc82186c73db5e68e00448133dd6e79e13d90c)), closes [#16679](https://github.com/aws/aws-cdk/issues/16679)
55+
56+
57+
### Bug Fixes
58+
59+
* **assertions:** `hasResourceProperties` is incompatible with `Match.not` and `Match.absent` ([#16678](https://github.com/aws/aws-cdk/issues/16678)) ([6f0a507](https://github.com/aws/aws-cdk/commit/6f0a5076b1e074fd33ed118af8e48b72d7593418)), closes [#16626](https://github.com/aws/aws-cdk/issues/16626)
60+
* **cloudfront:** EdgeFunctions cannot be created when IDs contain spaces ([#16845](https://github.com/aws/aws-cdk/issues/16845)) ([b0752c5](https://github.com/aws/aws-cdk/commit/b0752c5dcd0f1fa64b39d1b80ab2c0e0a99a72b0)), closes [#16832](https://github.com/aws/aws-cdk/issues/16832)
61+
* **cloudwatch:** alarms with accountId fails in regions that don't support cross-account alarms ([#16875](https://github.com/aws/aws-cdk/issues/16875)) ([54472a0](https://github.com/aws/aws-cdk/commit/54472a0ccebe208dca3402367626a938731544b0)), closes [#16874](https://github.com/aws/aws-cdk/issues/16874)
62+
* **iam:** not possible to represent `Principal: *` ([#16843](https://github.com/aws/aws-cdk/issues/16843)) ([6829a2a](https://github.com/aws/aws-cdk/commit/6829a2abe4d020d6a6eae7ff31e23b43d8762920))
63+
* **lambda:** currentVersion fails when architecture specified ([#16849](https://github.com/aws/aws-cdk/issues/16849)) ([8a0d369](https://github.com/aws/aws-cdk/commit/8a0d3699d7fc3dff70aa6416d30a30b57d29ff7e)), closes [#16814](https://github.com/aws/aws-cdk/issues/16814)
64+
* **s3:** auto-delete fails when bucket has been deleted manually ([#16645](https://github.com/aws/aws-cdk/issues/16645)) ([7b4fa72](https://github.com/aws/aws-cdk/commit/7b4fa721deac1d263d86c1d552c984fa1486f42e)), closes [#16619](https://github.com/aws/aws-cdk/issues/16619)
65+
66+
67+
### Miscellaneous Chores
68+
69+
* **assertions:** replace `absentProperty()` with `absent()` and support it as a `Matcher` type ([#16653](https://github.com/aws/aws-cdk/issues/16653)) ([c980185](https://github.com/aws/aws-cdk/commit/c980185142c58821b7ae7ef0b88c6c98ca8f0246))
70+
571
## [1.126.0](https://github.com/aws/aws-cdk/compare/v1.125.0...v1.126.0) (2021-10-05)
672

773

CONTRIBUTING.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,13 @@ $ yarn watch & # runs in the background
319319

320320
## Breaking Changes
321321

322-
_NOTE: Breaking changes will not be allowed in the upcoming v2 release. These instructions apply to v1._
322+
**_NOTE_**: _Starting with version 2.0.0 of the AWS CDK, **all modules and members vended as part of the main CDK library**_
323+
_**(`aws-cdk-lib`) will always be stable**; we are committing to never introduce breaking changes in a non-major bump._
324+
_Breaking changes are only allowed on pre-released (experimental or dev preview) modules_
325+
_(those with a `stability` of `experimental` in their respective `package.json` files)._
326+
_For v1, each module is separately released. For v2, only `stable` modules are released as part of the_
327+
_main `aws-cdk-lib` release, and all `experimental` modules are released independently as `-alpha` versions,_
328+
_and not included in the main CDK library._
323329

324330
Whenever you are making changes, there is a chance for those changes to be
325331
*breaking* existing users of the library. A change is breaking if there are
@@ -455,6 +461,47 @@ If the new behavior is going to be breaking, the user must opt in to it, either
455461
Of these two, the first one is preferred if possible (as feature flags have
456462
non-local effects which can cause unintended effects).
457463

464+
### Adding new experimental ("preview") APIs
465+
466+
To make sure we can keep adding features fast, while keeping our commitment to
467+
not release breaking changes, we are introducing a new model - API Previews.
468+
APIs that we want to get in front of developers early, and are not yet
469+
finalized, will be added to the AWS CDK with a specific suffix: `BetaX`. APIs
470+
with the preview suffix will never be removed, instead they will be deprecated
471+
and replaced by either the stable version (without the suffix), or by a newer
472+
preview version. For example, assume we add the method
473+
`grantAwesomePowerBeta1`:
474+
475+
```ts
476+
/**
477+
* This methods grants awesome powers
478+
*/
479+
grantAwesomePowerBeta1();
480+
```
481+
482+
Times goes by, we get feedback that this method will actually be much better
483+
if it accept a `Principal`. Since adding a required property is a breaking
484+
change, we will add `grantAwesomePowerBeta2()` and deprecate
485+
`grantAwesomePowerBeta1`:
486+
487+
```ts
488+
/**
489+
* This methods grants awesome powers to the given principal
490+
*
491+
* @param grantee The principal to grant powers to
492+
*/
493+
grantAwesomePowerBeta2(grantee: iam.IGrantable)
494+
495+
/**
496+
* This methods grants awesome powers
497+
* @deprecated use grantAwesomePowerBeta2
498+
*/
499+
grantAwesomePowerBeta1()
500+
```
501+
502+
When we decide its time to graduate the API, the latest preview version will
503+
be deprecated and the final version - `grantAwesomePower` will be added.
504+
458505
## Documentation
459506

460507
Every module's README is rendered as the landing page of the official documentation. For example, this is

0 commit comments

Comments
 (0)