Skip to content

Commit cfc9e93

Browse files
authored
Merge branch 'main' into rds-instance-enginelifecycle
2 parents 9bf5663 + 8055016 commit cfc9e93

File tree

542 files changed

+265476
-259869
lines changed

Some content is hidden

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

542 files changed

+265476
-259869
lines changed

.github/workflows/codecov-upload.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
uses: actions/download-artifact@v4
2525
with:
2626
name: coverage-artifacts
27-
path: ./coverage
27+
path: ./packages/aws-cdk-lib/core/coverage
2828
github-token: ${{ secrets.GITHUB_TOKEN }}
2929
repository: ${{ github.repository }}
3030
run-id: ${{ github.event.workflow_run.id }}
3131

3232
- name: Upload to Codecov
3333
uses: codecov/codecov-action@v5
3434
with:
35-
files: ./coverage/packages/aws-cdk-lib/coverage/cobertura-coverage.xml
35+
files: ./packages/aws-cdk-lib/core/coverage/cobertura-coverage.xml
3636
fail_ci_if_error: true
3737
flags: suite.unit
3838
use_oidc: true

.github/workflows/github-merit-badger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
badges: '[beginning-contributor,repeat-contributor,valued-contributor,admired-contributor,star-contributor,distinguished-contributor]'
1818
thresholds: '[0,3,6,13,25,50]'
1919
badge-type: 'achievement'
20-
ignore-usernames: '[rix0rrr,iliapolo,otaviomacedo,kaizencc,TheRealAmazonKendra,mrgrain,pahud,kellertk,ashishdhingra,khushail,moelasmar,paulhcsun,GavinZZ,xazhao,gracelu0,shikha372,godwingrs22,bergjaak,IanKonlog,Leo10Gama,samson-keung,scorbiere,jiayiwang7,saiyush,5d,iankhou,QuantumNeuralCoder,SimonCMoore,Y-JayKim,ykethan,astiwana,maharajhaider,aws-cdk-automation,dependabot[bot],mergify[bot],aemada-aws,ozelalisen,abogical,alinko-aws,vishaalmehrishi,alvazjor,kumsmrit,kumvprat,leonmk-aws,matboros,gasolima]'
20+
ignore-usernames: '[rix0rrr,iliapolo,otaviomacedo,kaizencc,TheRealAmazonKendra,mrgrain,pahud,kellertk,ashishdhingra,khushail,moelasmar,paulhcsun,GavinZZ,xazhao,gracelu0,shikha372,godwingrs22,bergjaak,IanKonlog,Leo10Gama,samson-keung,scorbiere,jiayiwang7,saiyush,5d,iankhou,QuantumNeuralCoder,SimonCMoore,Y-JayKim,ykethan,astiwana,maharajhaider,aws-cdk-automation,dependabot[bot],mergify[bot],aemada-aws,ozelalisen,abogical,alinko-aws,vishaalmehrishi,alvazjor,kumsmrit,kumvprat,leonmk-aws,matboros,gasolima,abidhasan-aws]'

.github/workflows/pr-build.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: PR Build
2+
3+
on:
4+
workflow_dispatch: {}
5+
merge_group: {}
6+
push:
7+
branches:
8+
- main
9+
- v2-release
10+
pull_request:
11+
branches:
12+
- main
13+
- v2-release
14+
15+
# For every PR, cancel any previous builds in progress
16+
# ... but for all other builds we keep them running
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.number || github.run_id }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build:
23+
runs-on: aws-cdk_ubuntu-latest_32-core
24+
25+
env:
26+
PR_BUILD: true
27+
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
32+
- name: Setup Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: "18"
36+
cache: "yarn"
37+
38+
- name: Set up Docker
39+
uses: docker/setup-buildx-action@v3
40+
41+
- name: Load Docker images
42+
id: docker-cache
43+
uses: actions/cache/restore@v4
44+
with:
45+
path: |
46+
~/.docker-images.tar
47+
key: docker-cache-${{ runner.os }}
48+
49+
- name: Restore Docker images
50+
if: ${{ steps.docker-cache.outputs.cache-hit }}
51+
run: docker image load --input ~/.docker-images.tar
52+
53+
- name: Cache build artifacts
54+
uses: actions/cache@v4
55+
with:
56+
path: |
57+
~/.s3buildcache
58+
key: s3buildcache-${{ runner.os }}
59+
60+
- name: Configure system settings
61+
run: |
62+
(command -v sysctl || sudo apt-get update && sudo apt-get install -y procps) && \
63+
sudo sysctl -w vm.max_map_count=2251954
64+
65+
- name: Build
66+
run: /bin/bash ./build.sh --ci
67+
68+
- name: Run Rosetta
69+
run: /bin/bash ./scripts/run-rosetta.sh
70+
71+
- name: Check for uncommitted changes
72+
run: git diff-index --exit-code --ignore-space-at-eol --stat HEAD
73+
74+
- name: Export Docker images
75+
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
76+
run: docker image save --output ~/.docker-images.tar $(docker image list --format '{{ if ne .Repository "<none>" }}{{ .Repository }}{{ if ne .Tag "<none>" }}:{{ .Tag }}{{ end }}{{ else }}{{ .ID }}{{ end }}')
77+
78+
- name: Cache Docker images
79+
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
80+
uses: actions/cache/save@v4
81+
with:
82+
path: |
83+
~/.docker-images.tar
84+
key: docker-cache-${{ runner.os }}

.github/workflows/spec-update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: AWS Service Spec Update
22

33
on:
44
schedule:
5-
# Every Monday at 13:37 UTC
6-
- cron: 37 13 * * 1
5+
# Every Monday at 10:15 UTC since dependency releases are on Fridays : https://github.com/cdklabs/awscdk-service-spec/releases?q=-spec&expanded=true
6+
- cron: 15 10 * * 1
77
workflow_dispatch: {}
88

99
jobs:

.mergify.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ queue_rules:
1616
- "#changes-requested-reviews-by=0"
1717
- status-success~=AWS CodeBuild us-east-1
1818
- status-success=validate-pr
19+
- status-success=build
1920
commit_message_template: |-
2021
{{ title }} (#{{ number }})
2122
{{ body }}
@@ -36,6 +37,7 @@ queue_rules:
3637
- "#changes-requested-reviews-by=0"
3738
- status-success~=AWS CodeBuild us-east-1
3839
- status-success=validate-pr
40+
- status-success=build
3941
commit_message_template: |-
4042
{{ title }} (#{{ number }})
4143
{{ body }}
@@ -55,6 +57,7 @@ queue_rules:
5557
- "#changes-requested-reviews-by=0"
5658
- status-success~=AWS CodeBuild us-east-1
5759
- status-success=validate-pr
60+
- status-success=build
5861
commit_message_template: |-
5962
{{ title }} (#{{ number }})
6063
{{ body }}
@@ -65,7 +68,7 @@ pull_request_rules:
6568
label:
6669
add: [contribution/core]
6770
conditions:
68-
- author~=^(rix0rrr|iliapolo|otaviomacedo|kaizencc|TheRealAmazonKendra|mrgrain|pahud|ashishdhingra|kellertk|moelasmar|paulhcsun|GavinZZ|xazhao|gracelu0|shikha372|QuantumNeuralCoder|godwingrs22|bergjaak|samson-keung|IanKonlog|Leo10Gama|scorbiere|jiayiwang7|saiyush|5d|iankhou|SimonCMoore|maharajhaider|Y-JayKim|astiwana|ykethan|aemada-aws|ozelalisen|abogical|alinko-aws|vishaalmehrishi|alvazjor|kumsmrit|kumvprat|leonmk-aws|matboros|gasolima)$
71+
- author=@aws/aws-cdk-team
6972
- -label~="contribution/core"
7073
- name: automatic merge
7174
actions:
@@ -87,6 +90,7 @@ pull_request_rules:
8790
- "#changes-requested-reviews-by=0"
8891
- status-success~=AWS CodeBuild us-east-1
8992
- status-success=validate-pr
93+
- status-success=build
9094
- name: automatic priority merge
9195
actions:
9296
comment:
@@ -108,6 +112,7 @@ pull_request_rules:
108112
- "#changes-requested-reviews-by=0"
109113
- status-success~=AWS CodeBuild us-east-1
110114
- status-success=validate-pr
115+
- status-success=build
111116
- name: automatic merge (2+ approvers)
112117
actions:
113118
comment:
@@ -129,6 +134,7 @@ pull_request_rules:
129134
- "#changes-requested-reviews-by=0"
130135
- status-success~=AWS CodeBuild us-east-1
131136
- status-success=validate-pr
137+
- status-success=build
132138
- name: automatic merge (no-squash)
133139
actions:
134140
comment:
@@ -150,6 +156,7 @@ pull_request_rules:
150156
- "#changes-requested-reviews-by=0"
151157
- status-success~=AWS CodeBuild us-east-1
152158
- status-success=validate-pr
159+
- status-success=build
153160
- name: remove stale reviews
154161
actions:
155162
dismiss_reviews:
@@ -190,6 +197,7 @@ pull_request_rules:
190197
- "#changes-requested-reviews-by=0"
191198
- status-success~=AWS CodeBuild us-east-1
192199
- status-success=validate-pr
200+
- status-success=build
193201
priority_rules:
194202
- name: priority for queue `default-merge`
195203
conditions:

CHANGELOG.v2.alpha.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
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.202.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.201.0-alpha.0...v2.202.0-alpha.0) (2025-06-20)
6+
7+
8+
### Features
9+
10+
* **amplify:** add compute role support for Amplify branches ([#34708](https://github.com/aws/aws-cdk/issues/34708)) ([817a21a](https://github.com/aws/aws-cdk/commit/817a21a782da035f7878facf8cc4d938250b70e0))
11+
* **amplify-alpha:** support custom response headers in monorepo structures ([#31771](https://github.com/aws/aws-cdk/issues/31771)) ([aea1372](https://github.com/aws/aws-cdk/commit/aea1372ab7bc68c489cea5ee5e499233755910e8)), closes [#31758](https://github.com/aws/aws-cdk/issues/31758)
12+
513
## [2.201.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.200.2-alpha.0...v2.201.0-alpha.0) (2025-06-12)
614

715

CHANGELOG.v2.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
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.202.0](https://github.com/aws/aws-cdk/compare/v2.201.0...v2.202.0) (2025-06-20)
6+
7+
8+
### Features
9+
10+
* **lambda:** support for schema registry for kafka ([#34746](https://github.com/aws/aws-cdk/issues/34746)) ([c6ea664](https://github.com/aws/aws-cdk/commit/c6ea66448e85639b79cc6cc35929708ab45915bc))
11+
* update L1 CloudFormation resource definitions ([#34730](https://github.com/aws/aws-cdk/issues/34730)) ([47a3ee3](https://github.com/aws/aws-cdk/commit/47a3ee3e7590fd085530cd16417fd506c5b9f4d7))
12+
* **cdk-pipeline:** add url and sns topic for manual approval in cdk pipeline (re-create PR since original is auto-closed) ([#34654](https://github.com/aws/aws-cdk/issues/34654)) ([39f1636](https://github.com/aws/aws-cdk/commit/39f163696935b34be6acdafa3f465b4f68ac7e08)), closes [#32809](https://github.com/aws/aws-cdk/issues/32809) [#12273](https://github.com/aws/aws-cdk/issues/12273) [#34227](https://github.com/aws/aws-cdk/issues/34227)
13+
* **eks:** support eks with k8s 1.33 ([#34602](https://github.com/aws/aws-cdk/issues/34602)) ([fc46733](https://github.com/aws/aws-cdk/commit/fc4673371b67c244262a863d975b11baddf6f597)), closes [#34520](https://github.com/aws/aws-cdk/issues/34520) [/github.com/aws/aws-cdk/pull/33339#issuecomment-2643498256](https://github.com/aws//github.com/aws/aws-cdk/pull/33339/issues/issuecomment-2643498256)
14+
* **kms:** implement .grant methods for Alias.fromAliasName (under feature flag) ([#34237](https://github.com/aws/aws-cdk/issues/34237)) ([8e19dd6](https://github.com/aws/aws-cdk/commit/8e19dd63f9f5de9b57d1964b4aac05748b72da87)), closes [#22697](https://github.com/aws/aws-cdk/issues/22697)
15+
* **opensearch:** add logic to only log specific field when less verbosity is needed for opensearch access policy custom resource ([#34701](https://github.com/aws/aws-cdk/issues/34701)) ([856e3b1](https://github.com/aws/aws-cdk/commit/856e3b185a794a58b2f1b0ddc01c6e2338fc35b8)), closes [#29093](https://github.com/aws/aws-cdk/issues/29093)
16+
* exclude `lambda.Version` and `apigateway.Deployment` from refactoring ([#34710](https://github.com/aws/aws-cdk/issues/34710)) ([dd14a17](https://github.com/aws/aws-cdk/commit/dd14a17500e0028e9544e33dbb9b7329ec1ae0d2))
17+
18+
### Bug Fixes
19+
20+
* **core:** splitting tree.json produces a lot of files ([#34718](https://github.com/aws/aws-cdk/issues/34718)) ([650134f](https://github.com/aws/aws-cdk/commit/650134fa95aafbfd6608eefda30415159a32da6d)), closes [#34478](https://github.com/aws/aws-cdk/issues/34478) [#34627](https://github.com/aws/aws-cdk/issues/34627)
21+
* **pipelines:** use display name for `Asset` actions when `publishAssetsInParallel` is false ([#34049](https://github.com/aws/aws-cdk/issues/34049)) ([754ad50](https://github.com/aws/aws-cdk/commit/754ad507548df813a2755bb0da78ea2fa9a573cb)), closes [#34042](https://github.com/aws/aws-cdk/issues/34042) [#33844](https://github.com/aws/aws-cdk/issues/33844)
22+
* **route53:** warn when ttl is provided with alias target in RecordSet ([#34526](https://github.com/aws/aws-cdk/issues/34526)) ([993d2fd](https://github.com/aws/aws-cdk/commit/993d2fdf8430b8c4d4167e6c125bcd15578bd150))
23+
* **test-app:** fix spelling error ([#34762](https://github.com/aws/aws-cdk/issues/34762)) ([1885062](https://github.com/aws/aws-cdk/commit/188506292cefb8da24dc8fd1dbfbeaf21c51fbc5))
24+
525
## [2.201.0](https://github.com/aws/aws-cdk/compare/v2.200.2...v2.201.0) (2025-06-12)
626

727

@@ -24,10 +44,8 @@ All notable changes to this project will be documented in this file. See [standa
2444

2545
### Bug Fixes
2646

27-
* export errors to make it available in region-info/lib/fact.ts ([#34691](https://github.com/aws/aws-cdk/issues/34691)) ([5c8f50c](https://github.com/aws/aws-cdk/commit/5c8f50c904fee3033ecd2bc151324cd897f931da)), closes [#34690](https://github.com/aws/aws-cdk/issues/34690) [#34690](https://github.com/aws/aws-cdk/issues/34690) [#33384](https://github.com/aws/aws-cdk/issues/33384)
2847
* **apigateway:** correct `JsonSchema.additionalItems` property type ([#33879](https://github.com/aws/aws-cdk/issues/33879)) ([464d521](https://github.com/aws/aws-cdk/commit/464d52155f00ffa083cac7ba569a06640574cef1)), closes [#33878](https://github.com/aws/aws-cdk/issues/33878) [#33878](https://github.com/aws/aws-cdk/issues/33878)
2948
* **cloudfront:** use wildcard when grant some cloudfront permission ([#33802](https://github.com/aws/aws-cdk/issues/33802)) ([452a5e1](https://github.com/aws/aws-cdk/commit/452a5e13f73046d1e58e5a92d33ae1e896c3251b)), closes [#33249](https://github.com/aws/aws-cdk/issues/33249)
30-
* **lambda:** disable aws-lambda:useCdkManagedLogGroup feature flag when not set ([#34613](https://github.com/aws/aws-cdk/issues/34613)) ([d696688](https://github.com/aws/aws-cdk/commit/d6966888924e08e153297b9616ec6d4c15d92c73)), closes [#34612](https://github.com/aws/aws-cdk/issues/34612) [#34612](https://github.com/aws/aws-cdk/issues/34612)
3149
* **logs:** exposed metric from the metric filter will now include the dimension map ([#34648](https://github.com/aws/aws-cdk/issues/34648)) ([892b013](https://github.com/aws/aws-cdk/commit/892b013157fe4d3a8793a833cebf3e7bd4916348)), closes [#34643](https://github.com/aws/aws-cdk/issues/34643)
3250
* **opensearch:** opensearchservice: existing integ test is failing ([#34680](https://github.com/aws/aws-cdk/issues/34680)) ([be21625](https://github.com/aws/aws-cdk/commit/be216256072da04a9d08e2f833cffd9ff08334df)), closes [1#L59](https://github.com/aws/1/issues/L59)
3351
* typo in jsdoc of noncurrentVersionTransitions property ([#34620](https://github.com/aws/aws-cdk/issues/34620)) ([ed08f3f](https://github.com/aws/aws-cdk/commit/ed08f3f0b8ecd79a2fa5e804acc73a9ff23eab80))

CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,17 @@ have to disable the built-in rebuild functionality of `lerna run test`:
14651465
$ CDK_TEST_BUILD=false lr test
14661466
```
14671467

1468+
#### The check-lfs Github action fails on my PR
1469+
1470+
This happens if your PR has files that should have been a Git LFS pointer but were not. You should verify
1471+
that you have Git LFS installed with `git lfs`, if not you can install it with `git lfs install`.
1472+
Once Git LFS is installed, use the following command:
1473+
1474+
```shell
1475+
$ git lfs migrate import --no-rewrite <path to files that make the gh action fail>
1476+
```
1477+
This will create a new commit that you can push to your branch to make the Github action pass.
1478+
14681479
## Debugging
14691480

14701481
### Connecting the VS Code Debugger

allowed-breaking-changes.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# and that won't typecheck if Manifest.load() adds a union arm and now returns A | B | C.
44
change-return-type:@aws-cdk/cloud-assembly-schema.Manifest.load
55

6+
# To deal with the same as the above: adding artifact properties weakens the ArtifactManifest type.
7+
# This is done on purpose though, and doesn't break a real type contract in practice because the type
8+
# of the `properties` field is already unreliable for exhaustive checking.
9+
weakened:aws-cdk-lib.cloud_assembly_schema.ArtifactManifest
10+
611
# Adding any new context queries will add to the ContextQueryProperties type,
712
# which changes the signature of MissingContext.
813
weakened:@aws-cdk/cloud-assembly-schema.MissingContext
@@ -190,7 +195,7 @@ removed:aws-cdk-lib.aws_ec2.CfnNetworkInterface.enablePrimaryIpv6
190195
removed:aws-cdk-lib.aws_ec2.CfnNetworkInterfaceAttachment.attrId
191196
removed:aws-cdk-lib.aws_ec2.CfnNetworkInterfaceProps.enablePrimaryIpv6
192197

193-
# Changed type from GraphqlApi to IGraphqlApi to support import from a different stack, should not matter.
198+
# Changed type from GraphqlApi to IGraphqlApi to support import from a different stack, should not matter.
194199
weakened:aws-cdk-lib.aws_appsync.SourceApi
195200

196201
# Due to https://github.com/aws/aws-cdk/issues/27259, none of these could have worked

lerna.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@
1212
"tools/@aws-cdk/cdk-build-tools",
1313
"tools/@aws-cdk/user-input-gen",
1414
"tools/@aws-cdk/cdk-release",
15-
"tools/@aws-cdk/node-bundle",
1615
"tools/@aws-cdk/pkglint",
1716
"tools/@aws-cdk/pkgtools",
1817
"tools/@aws-cdk/prlint",
1918
"tools/@aws-cdk/spec2cdk",
20-
"tools/@aws-cdk/yarn-cling",
2119
"tools/@aws-cdk/lazify",
2220
"tools/@aws-cdk/lambda-integration-test-updater",
2321
"tools/@aws-cdk/construct-metadata-updater",
@@ -26,4 +24,4 @@
2624
"rejectCycles": true,
2725
"version": "0.0.0",
2826
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
29-
}
27+
}

0 commit comments

Comments
 (0)