Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): 2.139.0 #29953

Merged
merged 29 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8e215b3
feat(ecs): support adding docker labels after container construction …
msambol Apr 18, 2024
ffe46b5
chore(bedrock): claude3-haiku model (#29587)
watany-dev Apr 18, 2024
91246ac
docs(apigateway): add warning about split stack technique (#29691)
engineer-taro Apr 18, 2024
713377d
Merge branch 'main' into merge-back/2.138.0
mergify[bot] Apr 18, 2024
69ea52f
fix(custom-resource-handler): auto-delete-[objects|images] breaks on …
GavinZZ Apr 19, 2024
301451d
chore(rds): add new AuroraMysql version (#29888)
Jared0430 Apr 19, 2024
c60eb75
Merge branch 'main' into merge-back/2.138.0
mergify[bot] Apr 19, 2024
cc4c96c
chore(merge-back): 2.138.0 (#29895)
mergify[bot] Apr 19, 2024
2126ee5
fix(CLI): bootstrap shows no hotswap changes when there are no change…
comcalvi Apr 19, 2024
99041b2
fix(custom-resources): cannot set logging for state machine generated…
go-to-k Apr 19, 2024
3dd834d
feat(appconfig): constrain environments to a single deployment at a t…
M-Hawkins Apr 19, 2024
f6c902e
fix(elasticloadbalancingv2): crossZoneEnabled does not support false …
pahud Apr 19, 2024
9eb21bd
chore(cli-testing): add a retry for test (#29908)
aws-cdk-automation Apr 19, 2024
2da544f
fix(ses-actions): permissions too wide for S3 action (#29833)
nmussy Apr 19, 2024
8bb8c55
fix(eks): incorrect nodegroupName(under feature flag) (#29794)
pahud Apr 19, 2024
1d16304
chore: add l1s into bedrock library (#29911)
TheRealAmazonKendra Apr 20, 2024
27b7a45
feat: update L1 CloudFormation resource definitions (#29924)
aws-cdk-automation Apr 22, 2024
ed75b16
feat(ecs): support `pidMode` for `FargateTaskDefinition` (#29670)
lpizzinidev Apr 22, 2024
31492c6
chore(bedrock): support claude3-opus and base models for provisioned …
ymhiroki Apr 22, 2024
1bdd3fa
chore: add assertions to integ tests using `AwsCustomResource` (#29929)
colifran Apr 23, 2024
f00f918
chore(eks): update ALB controller versions (#29470)
nmussy Apr 23, 2024
8e1fefd
fix(events-targets): `ApiGateway` events target should accept IRestAp…
n-k1 Apr 24, 2024
209ffd9
revert: "chore(eks): update ALB controller versions" (#29941)
paulhcsun Apr 24, 2024
7360a88
fix(s3-notifications): cdk destroy deletes external/existing s3 notif…
GavinZZ Apr 24, 2024
466f170
fix(CLI): `diff --template` crashes (#29896)
comcalvi Apr 24, 2024
6fdc458
feat(ses-actions): `WorkMail` rule action (#29854)
nmussy Apr 24, 2024
a15dc93
feat(efs): replicating file systems (#29347)
badmintoncryer Apr 24, 2024
6964b78
chore(release): 2.139.0
Apr 24, 2024
9616fd2
Update CHANGELOG.v2.md
moelasmar Apr 24, 2024
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
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions CHANGELOG.v2.alpha.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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.139.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.138.0-alpha.0...v2.139.0-alpha.0) (2024-04-24)

## [2.138.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.137.0-alpha.0...v2.138.0-alpha.0) (2024-04-18)


Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@

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.139.0](https://github.com/aws/aws-cdk/compare/v2.138.0...v2.139.0) (2024-04-24)


### Features

* **appconfig:** constrain environments to a single deployment at a time ([#29500](https://github.com/aws/aws-cdk/issues/29500)) ([3dd834d](https://github.com/aws/aws-cdk/commit/3dd834d66a9345eaab372a9dd59e673e52c86d7e)), closes [#29345](https://github.com/aws/aws-cdk/issues/29345)
* **ecs:** support `pidMode` for `FargateTaskDefinition` ([#29670](https://github.com/aws/aws-cdk/issues/29670)) ([ed75b16](https://github.com/aws/aws-cdk/commit/ed75b160f86b266a256ed7dd347dc54a34b937d0)), closes [#29619](https://github.com/aws/aws-cdk/issues/29619)
* **ecs:** support adding docker labels after container construction ([#29734](https://github.com/aws/aws-cdk/issues/29734)) ([8e215b3](https://github.com/aws/aws-cdk/commit/8e215b3c740efa260e18dab9cd30c487c822f3ef)), closes [#29728](https://github.com/aws/aws-cdk/issues/29728)
* **efs:** replicating file systems ([#29347](https://github.com/aws/aws-cdk/issues/29347)) ([a15dc93](https://github.com/aws/aws-cdk/commit/a15dc939c8d3ba3ac0f20b4a78ec7d403cde56bd)), closes [#21455](https://github.com/aws/aws-cdk/issues/21455)
* **ses-actions:** `WorkMail` rule action ([#29854](https://github.com/aws/aws-cdk/issues/29854)) ([6fdc458](https://github.com/aws/aws-cdk/commit/6fdc4582f659549021a64a4d676fce12fc241715))
* update L1 CloudFormation resource definitions ([#29924](https://github.com/aws/aws-cdk/issues/29924)) ([27b7a45](https://github.com/aws/aws-cdk/commit/27b7a4529bc23b068d338b937e08c92ab4a0f962))


### Bug Fixes

* **CLI:** `diff --template` crashes ([#29896](https://github.com/aws/aws-cdk/issues/29896)) ([466f170](https://github.com/aws/aws-cdk/commit/466f170af409d0c9c44f0f03a6eb5a72553db29b)), closes [#29890](https://github.com/aws/aws-cdk/issues/29890)
* **CLI:** bootstrap shows no hotswap changes when there are no changes ([#29877](https://github.com/aws/aws-cdk/issues/29877)) ([2126ee5](https://github.com/aws/aws-cdk/commit/2126ee5b1eac4bce2d085b1a9bd27a65eb33b137)), closes [#25736](https://github.com/aws/aws-cdk/issues/25736)
* **custom-resource-handler:** auto-delete-[objects|images] breaks on cloudformation rollback ([#29581](https://github.com/aws/aws-cdk/issues/29581)) ([69ea52f](https://github.com/aws/aws-cdk/commit/69ea52f6e2b82dfe65c33d119f7ab998f367c6bf))
* **custom-resources:** cannot set logging for state machine generated in CompleteHandler ([#28706](https://github.com/aws/aws-cdk/issues/28706)) ([99041b2](https://github.com/aws/aws-cdk/commit/99041b29fa00cad6c7dbdc19685866add3e1243e)), closes [#27283](https://github.com/aws/aws-cdk/issues/27283) [#28577](https://github.com/aws/aws-cdk/issues/28577) [#28744](https://github.com/aws/aws-cdk/issues/28744) [#27310](https://github.com/aws/aws-cdk/issues/27310) [#28699](https://github.com/aws/aws-cdk/issues/28699) [#28587](https://github.com/aws/aws-cdk/issues/28587)
* **eks:** incorrect nodegroupName(under feature flag) ([#29794](https://github.com/aws/aws-cdk/issues/29794)) ([8bb8c55](https://github.com/aws/aws-cdk/commit/8bb8c5579108e8b80e465049c2a28c5c10c70b09))
* **elasticloadbalancingv2:** crossZoneEnabled does not support false for ALB ([#29907](https://github.com/aws/aws-cdk/issues/29907)) ([f6c902e](https://github.com/aws/aws-cdk/commit/f6c902e701b3a8283a5d9a9fb136e3321d7bf61e))
* **events-targets:** `ApiGateway` events target should accept IRestApi ([#29397](https://github.com/aws/aws-cdk/issues/29397)) ([8e1fefd](https://github.com/aws/aws-cdk/commit/8e1fefd81c6531063eba94f352a2b6d12c87810b)), closes [#16423](https://github.com/aws/aws-cdk/issues/16423) [/github.com/aws/aws-cdk/pull/16542#discussion_r713676896](https://github.com/aws//github.com/aws/aws-cdk/pull/16542/issues/discussion_r713676896) [/github.com/aws/aws-cdk/pull/16542#issuecomment-925051255](https://github.com/aws//github.com/aws/aws-cdk/pull/16542/issues/issuecomment-925051255)
* **s3-notifications:** cdk destroy deletes external/existing s3 notification events ([#29939](https://github.com/aws/aws-cdk/issues/29939)) ([7360a88](https://github.com/aws/aws-cdk/commit/7360a885e6282ad28b4ae72f9ae92a6bcda88b15))
* **ses-actions:** permissions too wide for S3 action ([#29833](https://github.com/aws/aws-cdk/issues/29833)) ([2da544f](https://github.com/aws/aws-cdk/commit/2da544feeeda68a379f0f79f18e138b9640c1691)), closes [#29811](https://github.com/aws/aws-cdk/issues/29811) [#29823](https://github.com/aws/aws-cdk/issues/29823) [/docs.aws.amazon.com/ses/latest/dg/receiving-email-permissions.html#receiving-email-permissions-s3](https://github.com/aws//docs.aws.amazon.com/ses/latest/dg/receiving-email-permissions.html/issues/receiving-email-permissions-s3)

## [2.138.0](https://github.com/aws/aws-cdk/compare/v2.137.0...v2.138.0) (2024-04-18)


Expand Down
42 changes: 42 additions & 0 deletions packages/@aws-cdk-testing/cli-integ/lib/eventually.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/**
* @param maxAttempts the maximum number of attempts
* @param interval interval in milliseconds to observe between attempts
*/
export type EventuallyOptions = {
maxAttempts?: number;
interval?: number;
};

const wait = (ms: number): Promise<void> => new Promise((resolve) => setTimeout(resolve, ms));
const DEFAULT_INTERVAL = 1000;
const DEFAULT_MAX_ATTEMPTS = 10;

/**
* Runs a function on an interval until the maximum number of attempts has
* been reached.
*
* Default interval = 1000 milliseconds
* Default maxAttempts = 10
*
* @param fn function to run
* @param options EventuallyOptions
*/
const eventually = async <T>(call: () => Promise<T>, options?: EventuallyOptions): Promise<T> => {
const opts = {
interval: options?.interval ? options.interval : DEFAULT_INTERVAL,
maxAttempts: options?.maxAttempts ? options.maxAttempts : DEFAULT_MAX_ATTEMPTS,
};

while (opts.maxAttempts-- >= 0) {
try {
return await call();
} catch (err) {
if (opts.maxAttempts <= 0) throw err;
}
await wait(opts.interval);
}

throw new Error('An unexpected error has occurred.');
};

export default eventually;
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as fs from 'fs';
import * as path from 'path';
import * as yaml from 'yaml';
import { integTest, randomString, withoutBootstrap } from '../../lib';
import eventually from '../../lib/eventually';

jest.setTimeout(2 * 60 * 60_000); // Includes the time to acquire locks, worst-case single-threaded runtime

Expand Down Expand Up @@ -283,17 +284,25 @@ integTest('can remove customPermissionsBoundary', withoutBootstrap(async (fixtur
}),
});
policyArn = policy.Policy?.Arn;
await fixture.cdkBootstrapModern({
// toolkitStackName doesn't matter for this particular invocation
toolkitStackName: bootstrapStackName,
customPermissionsBoundary: policyName,
});

const response = await fixture.aws.cloudFormation('describeStacks', { StackName: bootstrapStackName });
expect(
response.Stacks?.[0].Parameters?.some(
param => (param.ParameterKey === 'InputPermissionsBoundary' && param.ParameterValue === policyName),
)).toEqual(true);
// Policy creation and consistency across regions is "almost immediate"
// See: https://docs.aws.amazon.com/IAM/latest/UserGuide/troubleshoot_general.html#troubleshoot_general_eventual-consistency
// We will put this in an `eventually` block to retry stack creation with a reasonable timeout
const createStackWithPermissionBoundary = async (): Promise<void> => {
await fixture.cdkBootstrapModern({
// toolkitStackName doesn't matter for this particular invocation
toolkitStackName: bootstrapStackName,
customPermissionsBoundary: policyName,
});

const response = await fixture.aws.cloudFormation('describeStacks', { StackName: bootstrapStackName });
expect(
response.Stacks?.[0].Parameters?.some(
param => (param.ParameterKey === 'InputPermissionsBoundary' && param.ParameterValue === policyName),
)).toEqual(true);
};

await eventually(createStackWithPermissionBoundary, { maxAttempts: 3 });

await fixture.cdkBootstrapModern({
// toolkitStackName doesn't matter for this particular invocation
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
{
"Resources": {
"MyApplicationForEnv1F597ED9": {
"Type": "AWS::AppConfig::Application",
"Properties": {
"Name": "awsappconfigmulticonfigenv-MyApplicationForEnv-1EE3EA95"
}
},
"MultiConfigEnvironment5F41B747": {
"Type": "AWS::AppConfig::Environment",
"Properties": {
"ApplicationId": {
"Ref": "MyApplicationForEnv1F597ED9"
},
"Name": "awsappconfigmulticonfigenv-MultiConfigEnvironment-59525230"
}
},
"QuickDeploymentStrategy980252EC": {
"Type": "AWS::AppConfig::DeploymentStrategy",
"Properties": {
"DeploymentDurationInMinutes": 1,
"GrowthFactor": 50,
"GrowthType": "LINEAR",
"Name": "awsappconfigmulticonfigenv-QuickDeploymentStrategy-CAB72574",
"ReplicateTo": "NONE"
}
},
"MyFirstConfigConfigurationProfileAB11F87A": {
"Type": "AWS::AppConfig::ConfigurationProfile",
"Properties": {
"ApplicationId": {
"Ref": "MyApplicationForEnv1F597ED9"
},
"LocationUri": "hosted",
"Name": "awsappconfigmulticonfigenv-MyFirstConfig-2FF7CAAB"
}
},
"MyFirstConfig117AFBAC": {
"Type": "AWS::AppConfig::HostedConfigurationVersion",
"Properties": {
"ApplicationId": {
"Ref": "MyApplicationForEnv1F597ED9"
},
"ConfigurationProfileId": {
"Ref": "MyFirstConfigConfigurationProfileAB11F87A"
},
"Content": "first config content",
"ContentType": "application/octet-stream"
},
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain"
},
"MyFirstConfigDeployment5AEBAD52B8EE4": {
"Type": "AWS::AppConfig::Deployment",
"Properties": {
"ApplicationId": {
"Ref": "MyApplicationForEnv1F597ED9"
},
"ConfigurationProfileId": {
"Ref": "MyFirstConfigConfigurationProfileAB11F87A"
},
"ConfigurationVersion": {
"Ref": "MyFirstConfig117AFBAC"
},
"DeploymentStrategyId": {
"Ref": "QuickDeploymentStrategy980252EC"
},
"EnvironmentId": {
"Ref": "MultiConfigEnvironment5F41B747"
}
}
},
"MySecondConfigConfigurationProfileD0CC1BAA": {
"Type": "AWS::AppConfig::ConfigurationProfile",
"Properties": {
"ApplicationId": {
"Ref": "MyApplicationForEnv1F597ED9"
},
"LocationUri": "hosted",
"Name": "awsappconfigmulticonfigenv-MySecondConfig-4F837809"
}
},
"MySecondConfig28DEBAC4": {
"Type": "AWS::AppConfig::HostedConfigurationVersion",
"Properties": {
"ApplicationId": {
"Ref": "MyApplicationForEnv1F597ED9"
},
"ConfigurationProfileId": {
"Ref": "MySecondConfigConfigurationProfileD0CC1BAA"
},
"Content": "second config content",
"ContentType": "application/octet-stream"
},
"UpdateReplacePolicy": "Retain",
"DeletionPolicy": "Retain"
},
"MySecondConfigDeployment5AEBAD1470BE4": {
"Type": "AWS::AppConfig::Deployment",
"Properties": {
"ApplicationId": {
"Ref": "MyApplicationForEnv1F597ED9"
},
"ConfigurationProfileId": {
"Ref": "MySecondConfigConfigurationProfileD0CC1BAA"
},
"ConfigurationVersion": {
"Ref": "MySecondConfig28DEBAC4"
},
"DeploymentStrategyId": {
"Ref": "QuickDeploymentStrategy980252EC"
},
"EnvironmentId": {
"Ref": "MultiConfigEnvironment5F41B747"
}
},
"DependsOn": [
"MyFirstConfigDeployment5AEBAD52B8EE4"
]
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading