Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
8aa2f81
feat(apigatewayv2): add dualstack support to domain name (#34111)
laurelmay May 7, 2025
639b883
feat(synthetics): add 5.0 and 5.1 python canary runtimes (#34254)
armujahid May 7, 2025
7e4431d
chore(security-guardian): security-guardian to skip release pr (#34386)
QuantumNeuralCoder May 7, 2025
af99a77
Merge branch 'main' into merge-back/2.195.0
mergify[bot] May 7, 2025
fdc8492
chore(merge-back): 2.195.0 (#34388)
mergify[bot] May 7, 2025
0049729
chore: upgrade @aws-cdk/integ-runner to 2.186.5 (#34385)
samson-keung May 8, 2025
ce7b307
chore: exclude `@aws-cdk/asset-awscli-v1` from auto upgrading (#34395)
samson-keung May 8, 2025
ae0c7b7
feat: support healthCheckGracePeriod in QueueProcessingFargateService…
TrevorBurnham May 8, 2025
6b441b7
chore: pin `asset-awscli-v1` version (#34399)
samson-keung May 9, 2025
c50cb87
chore: npm-check-updates && yarn upgrade (#34378)
aws-cdk-automation May 9, 2025
b1165e4
chore(enum-updater): exclude none enum value for appsync AppSyncDataS…
paulhcsun May 9, 2025
c05a874
chore(appsync): add new enum values for appsync (#34374)
github-actions[bot] May 9, 2025
c8b98e7
feat(elasticloadbalancingv2): add support for multi-value headers in …
kawabata-mcl May 9, 2025
488f0db
feat(s3tables): server-side encryption by customer managed KMS key (#…
badmintoncryer May 9, 2025
c0058ba
chore(enum-updater): exclude `CUSTOM_INSTANCE_TYPE` from codebuild `C…
paulhcsun May 9, 2025
957d8e3
feat(region-info): update Metadata regions (#34414)
aws-cdk-automation May 10, 2025
8cf7e55
chore: scope down pr-linter-exemption-labeler workflow permissions (#…
gracelu0 May 11, 2025
2aafbf8
chore(aws-cdk-lib): declare where no-throw-default-error is not yet s…
mrgrain May 12, 2025
5432367
chore(deps): bump step-security/changed-files from 45.0.1 to 46.0.5 (…
dependabot[bot] May 12, 2025
5cd82f5
feat(route53): add cidrRoutingConfig property (#34301)
tttol May 12, 2025
2e7c55b
feat(eks): throw `ValidationError`s instead of untyped errors (#34428)
mrgrain May 12, 2025
10756c1
feat(kms): throw `ValidationError`s instead of untyped errors (#34431)
mrgrain May 12, 2025
5509923
feat(opensearchservice): throw `ValidationError`s instead of untyped …
mrgrain May 12, 2025
28048b3
feat(servicediscovery): throw `ValidationError`s instead of untyped e…
mrgrain May 12, 2025
e828389
feat(stepfunctions): throw `ValidationError`s instead of untyped erro…
mrgrain May 12, 2025
e493cc8
feat(events-targets): throw `ValidationError`s instead of untyped err…
mrgrain May 12, 2025
aa73534
fix(ec2-alpha): fix resource id references and tags for migration beh…
shikha372 May 12, 2025
4ea004d
chore: new GH workflow for upgrading dependencies that require manual…
samson-keung May 13, 2025
10f10fe
chore(enum-updater): update enum static mapping (#34421)
github-actions[bot] May 13, 2025
4dc523f
feat: property injectors and make all L2 Constructors injectable (#34…
pcheungamz May 13, 2025
904e3a3
fix(s3): updating blockPublicAccess to enable default true settings (…
IkeNefcy May 13, 2025
2f846b3
feat(pipes-targets): add SNS (#34159)
msambol May 13, 2025
8a5aecb
feat(stepfunctions): `ResultWriter` support JSONPath/JSONata bucket (…
phuhung273 May 13, 2025
0f71ee1
feat(stepfunctions): add parameters to parallel state (#34131)
HeNeos May 13, 2025
98e352d
feat(sns-subscriptions): throw `ValidationError`s instead of untyped …
mrgrain May 13, 2025
13d9645
feat(elasticsearch): throw `ValidationError`s instead of untyped erro…
mrgrain May 13, 2025
bc7c4e8
feat(scheduler): throw `ValidationError`s instead of untyped errors (…
mrgrain May 13, 2025
5cfea39
feat(ecs): throw `ValidationError`s instead of untyped errors (#34427)
mrgrain May 13, 2025
5ee092a
feat(globalaccelerator): throw `ValidationError`s instead of untyped …
mrgrain May 13, 2025
9ddc00a
fix(cloudwatch-actions): lambda permission use unique prefix id (#34269)
phuhung273 May 13, 2025
9684d50
chore: fix code snippet in Readme (#34450)
moelasmar May 13, 2025
8a8dcb8
chore(rds): postgres aurora add 16.8-limitless, rds add 17.5, 16.9, 1…
phuhung273 May 13, 2025
6460ffe
feat(cloudformation): update L1 CloudFormation resource definitions (…
aws-cdk-automation May 13, 2025
039a3aa
chore: split codecov to collect and upload workflows (#34451)
QuantumNeuralCoder May 13, 2025
bcfeb69
chore(security-guardian): skip release and mergeback PRs (#34454)
QuantumNeuralCoder May 14, 2025
3e196ee
chore: fixes codecov upload issue codecov split (#34455)
QuantumNeuralCoder May 14, 2025
4eed0d9
chore: npm-check-updates && yarn upgrade (#34458)
aws-cdk-automation May 14, 2025
adbb31b
chore(rds): deprecate Aurora PostgreSQL versions 12.11-21, 13.7, 13.8…
Tietew May 14, 2025
d03e856
feat(rds): add Aurora MySQL versions 2.11.6, 2.12.5, 3.04.4 (#34443)
Tietew May 14, 2025
a0bfac9
chore(spec2cdk): remove temporary schema for AWS::AppSync::ChannelNam…
paulhcsun May 14, 2025
145796c
revert: "feat(s3tables): server-side encryption by customer managed K…
godwingrs22 May 14, 2025
ac0e4ca
feat(s3-tables): add KMS support for TableBucket L2 construct (#34281)
xuxey May 14, 2025
5197882
fix(eks): eks cluster name exceeding the limit of 100 characters (#34…
astiwana May 14, 2025
35e818b
fix(ec2): dual-stack vpc without private subnets creates EgressOnlyI…
maharajhaider May 14, 2025
59c8c7d
chore(codecov): codecov refactored into collect and upload workflows …
QuantumNeuralCoder May 14, 2025
a1226db
feat(msk): support Kafka versions 3.9.x and 3.9.x Kraft (#34213)
mazyu36 May 15, 2025
967ee9d
chore(enum-updater): support adding manual static enum mappings (#34441)
paulhcsun May 15, 2025
40e8c26
chore: update metadata_updater to skip some L2 constructs from being …
moelasmar May 15, 2025
2cd737d
chore: yarn upgrade dependencies requiring intervention (#34440)
aws-cdk-automation May 15, 2025
60d7aea
feat(ses): https policy for custom tracking domain (#34314)
badmintoncryer May 15, 2025
e1764f4
chore(release): 2.196.0
May 15, 2025
8ee4427
chore: update analytics metadata blueprints
aws-cdk-automation May 15, 2025
f5fcfcc
Update CHANGELOG.v2.md
moelasmar May 15, 2025
31008b5
fix exporting and importing prop-injectable
moelasmar May 15, 2025
9d7a388
keep `PropertyInjectableConstructConstructor` private
moelasmar May 15, 2025
3301ecc
fix fixtures
moelasmar May 15, 2025
15e174e
fix fixtures
moelasmar May 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ Owner: CDK support team
patch file for downloading.
Owner: Core CDK team

### Yarn Upgrader for deps needing manual work

[yarn-upgrade-need-manual-work.yml](yarn-upgrade-need-manual-work.yml): Upgrades specific dependencies that require manual intervention and creates a PR for review.
For example, some dependency upgrades require manual updates to the integ test snapshots.
Owner: Core CDK team

### AWS Service Spec Update

[spec-update.yml](spec-update.yml): Updates AWS Service Spec and related packages to their latest versions
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/codecov-collect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Codecov Collect

on:
pull_request:

permissions:
contents: read

jobs:
collect:
name: Collect Coverage
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4

- name: Install dependencies
run: yarn install

- name: Build Library
run: npx lerna run build --scope=aws-cdk-lib

- name: Run Core tests
run: cd packages/aws-cdk-lib && yarn test core

- name: Upload Coverage and PR Info
uses: actions/upload-artifact@v4
with:
name: coverage-artifacts
path: |
packages/aws-cdk-lib/coverage/cobertura-coverage.xml
38 changes: 38 additions & 0 deletions .github/workflows/codecov-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Codecov Upload

on:
workflow_run:
workflows: ["Codecov Collect"]
types:
- completed

permissions:
contents: write
id-token: write
actions: read

jobs:
upload:
name: Upload to Codecov
runs-on: ubuntu-latest
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'

steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: coverage-artifacts
path: ./coverage
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
run-id: ${{ github.event.workflow_run.id }}

- name: Upload to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage/packages/aws-cdk-lib/coverage/cobertura-coverage.xml
fail_ci_if_error: true
flags: suite.unit
use_oidc: true
45 changes: 0 additions & 45 deletions .github/workflows/codecov.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/enum-static-mapping-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ jobs:
git checkout -b "$branchName"

git add . # Add all files changed
git commit -m "chore: update enum static mapping"
git commit -m "chore(enum-updater): update enum static mapping"
git push -f origin "$branchName"

gh pr create --title "chore: update enum static mapping" \
gh pr create --title "chore(enum-updater): update enum static mapping" \
--body "This PR updates the CDK enum mapping file." \
--base main \
--head "$branchName" \
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pr-linter-exemption-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ jobs:
pr_commented:
name: PR Comment
if: ${{ (github.event.issue.pull_request) && (github.event.issue.state == 'open') }}
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: cdklabs/pr-linter-exemption-labeler@main
with:
github-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
github-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/request-cli-integ-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
persist-credentials: false
- name: Find changed cli files
id: changed-cli-files
uses: step-security/changed-files@3dbe17c78367e7d60f00d78ae6781a35be47b4a1
uses: step-security/changed-files@95b56dadb92a30ca9036f16423fd3c088a71ee94
with:
base_sha: ${{ github.event.pull_request.base.sha }}
files_yaml: |
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/security-guardian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,23 @@ on:
pull_request: {}

jobs:
run-security-guardian:
log-skip:
if: |
startsWith(github.event.pull_request.title, 'chore(release):') ||
startsWith(github.event.pull_request.title, 'chore(merge-back):')
runs-on: ubuntu-latest
steps:
- run: echo "Skipping Security Guardian for release/merge-back PR"
run-security-guardian:
if: |
!startsWith(github.event.pull_request.title, 'chore(release):') &&
!startsWith(github.event.pull_request.title, 'chore(merge-back):')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to enable full git diff
fetch-depth: 0

- name: Install cfn-guard
run: |
Expand Down
120 changes: 120 additions & 0 deletions .github/workflows/yarn-upgrade-need-manual-work.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: Yarn Upgrade Dependencies Requiring Intervention
# This workflow upgrade npm dependencies that will require manual work. For example, `@aws-cdk/asset-awscli-v1` upgrade always require manually updating snapshots.
# When adding deps in this workflow, we must also exclude them in the Yarn Upgrade workflow. This is so that the PR from that workflow can be kept clean (i.e. does not need manual update).
# See this line on how to exclude deps: https://github.com/aws/aws-cdk/blob/ce7b30775f354c7de774f73c5f8dedd9ce7530d3/.github/workflows/yarn-upgrade.yml#L61
# If this proves to be too cumbersome, we can refactor both workflow to reference the deps list from a single place.

on:
schedule:
# Every wednesday at 13:37 UTC
- cron: 37 13 * * 3
workflow_dispatch: {}

# For multiple dependencies, do `DEPS_TO_UPGRADE:"p1 p2 p3"`
env:
DEPS_TO_UPGRADE: "@aws-cdk/asset-awscli-v1"

jobs:
upgrade:
name: Yarn Upgrade
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "*"
env:
NODE_OPTIONS: "--max-old-space-size=8196 --experimental-worker ${NODE_OPTIONS:-}"

- name: Locate Yarn cache
id: yarn-cache
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Restore Yarn cache
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |-
${{ runner.os }}-yarn-
- name: Yarn Install
run: yarn install --frozen-lockfile
- name: Install Tools
run: |-
npm -g install lerna npm-check-updates
- name: Run "ncu -u"
run: |-
# Convert space-separated string to comma-separated string for the filter
FILTER=$(echo "$DEPS_TO_UPGRADE" | tr ' ' ',')
lerna exec --parallel ncu -- --upgrade --filter="$FILTER" --target=minor

- name: Run "yarn upgrade"
run: |
echo "Upgrading dependencies: $DEPS_TO_UPGRADE"
yarn upgrade $DEPS_TO_UPGRADE --exact

# Next, create and upload the changes as a patch file. This will later be downloaded to create a pull request
# Creating a pull request requires write permissions and it's best to keep write privileges isolated.
- name: Create Patch
run: |-
git add .
git diff --binary --patch --staged > ${{ runner.temp }}/upgrade.patch

- name: Upload Patch
uses: actions/upload-artifact@v4
with:
name: upgrade.patch
path: ${{ runner.temp }}/upgrade.patch

pr:
name: Create Pull Request
needs: upgrade
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v4

- name: Download patch
uses: actions/download-artifact@v4
with:
name: upgrade.patch
path: ${{ runner.temp }}

- name: Apply patch
run: '[ -s ${{ runner.temp }}/upgrade.patch ] && git apply --binary ${{ runner.temp
}}/upgrade.patch || echo "Empty patch. Skipping."'

- name: Make Pull Request
uses: peter-evans/create-pull-request@v7
with:
# Git commit details
branch: automation/yarn-upgrade-dependencies-requiring-intervention
author: aws-cdk-automation <aws-cdk-automation@users.noreply.github.com>
commit-message: |-
chore: npm-check-updates && yarn upgrade
Ran npm-check-updates and yarn upgrade to keep the `yarn.lock` file up-to-date.
# Pull Request details
title: 'chore: yarn upgrade dependencies requiring intervention'
body: |-
Ran npm-check-updates and yarn upgrade for the following dependencies:
```
${{ env.DEPS_TO_UPGRADE }}
```
Checkout this branch and run integration tests locally to update snapshots.
```
(cd packages/@aws-cdk-testing/framework-integ && yarn integ --update-on-failed)
```
See https://www.npmjs.com/package/@aws-cdk/integ-runner for more integ runner options.
labels: contribution/core,dependencies
team-reviewers: aws-cdk-team
# Github prevents further Github actions to be run if the default Github token is used.
# Instead use a privileged token here, so further GH actions can be triggered on this PR.
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/yarn-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
ncu --upgrade --reject=@types/node,@types/prettier,constructs,jsii,jsii-rosetta,typescript --target=minor
# Upgrade all the packages
lerna exec --parallel ncu -- --upgrade --filter=jsii,jsii-rosetta,typescript --target=patch
lerna exec --parallel ncu -- --upgrade --reject='@types/conventional-commits-parser,@types/node,@types/prettier,constructs,jsii,jsii-rosetta,typescript,aws-sdk-mock,@aws-sdk/*,@aws-cdk/aws-service-spec,@aws-cdk/service-spec-types,${{ steps.list-packages.outputs.list }}' --target=minor
lerna exec --parallel ncu -- --upgrade --reject='@aws-cdk/asset-awscli-v1,@types/conventional-commits-parser,@types/node,@types/prettier,constructs,jsii,jsii-rosetta,typescript,aws-sdk-mock,@aws-sdk/*,@aws-cdk/aws-service-spec,@aws-cdk/service-spec-types,${{ steps.list-packages.outputs.list }}' --target=minor
# Upgrade package.json files in init templates
for pj in $(find packages/aws-cdk/lib/init-templates -name package.json); do
(cd $(dirname $pj) && ncu --upgrade --reject='constructs,${{ steps.list-packages.outputs.list }}')
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.v2.alpha.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

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.

## [2.196.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.195.0-alpha.0...v2.196.0-alpha.0) (2025-05-15)


### Features

* **msk:** support Kafka versions 3.9.x and 3.9.x Kraft ([#34213](https://github.com/aws/aws-cdk/issues/34213)) ([a1226db](https://github.com/aws/aws-cdk/commit/a1226db3164f885ab1bbf13a18697831cfde74d0))
* **pipes-targets:** add SNS ([#34159](https://github.com/aws/aws-cdk/issues/34159)) ([2f846b3](https://github.com/aws/aws-cdk/commit/2f846b395cc5061363bd6def946a04740ac0139b))
* **s3tables:** server-side encryption by customer managed KMS key ([#34229](https://github.com/aws/aws-cdk/issues/34229)) ([488f0db](https://github.com/aws/aws-cdk/commit/488f0db714c20fcaf5dbdf682277a70c6a938d3f))


### Bug Fixes

* **ec2:** dual-stack vpc without private subnets creates EgressOnlyInternetGateway (under feature flag) ([#34437](https://github.com/aws/aws-cdk/issues/34437)) ([35e818b](https://github.com/aws/aws-cdk/commit/35e818b4f86638b5fe6074705511d1eee16266d2)), closes [#30981](https://github.com/aws/aws-cdk/issues/30981)
* **ec2-alpha:** fix resource id references and tags for migration behind feature flag ([#34377](https://github.com/aws/aws-cdk/issues/34377)) ([aa73534](https://github.com/aws/aws-cdk/commit/aa735341a8e95224a14241b5e1c5c5ba71de5022))

## [2.195.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.194.0-alpha.0...v2.195.0-alpha.0) (2025-05-07)


Expand Down
Loading