Skip to content

Commit

Permalink
chore(release): 1.44.0 (#8370)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jun 4, 2020
2 parents b1c232c + 10c5304 commit 1cd832b
Show file tree
Hide file tree
Showing 24 changed files with 85 additions and 29 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

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.

## [1.44.0](https://github.com/aws/aws-cdk/compare/v1.43.0...v1.44.0) (2020-06-04)


### Features

* **ecs-patterns:** support min and max health percentage in queueprocessingservice ([#8312](https://github.com/aws/aws-cdk/issues/8312)) ([6da564d](https://github.com/aws/aws-cdk/commit/6da564d68c5195c88c5959b7375e2973c2b07676))

## [1.43.0](https://github.com/aws/aws-cdk/compare/v1.42.1...v1.43.0) (2020-06-03)


Expand Down
2 changes: 1 addition & 1 deletion design/aws-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export interface IFoo extends cdk.IConstruct, ISomething {

// attributes
readonly fooArn: string;
readonly fooBoo: string;
readonly fooBoo: string[];

// security group connections (if applicable)
readonly connections: ec2.Connections;
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"tools/*"
],
"rejectCycles": "true",
"version": "1.43.0"
"version": "1.44.0"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"conventional-changelog-cli": "^2.0.34",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"jsii-diff": "^1.6.0",
"jsii-pacmak": "^1.6.0",
"jsii-rosetta": "^1.6.0",
Expand Down
19 changes: 19 additions & 0 deletions packages/@aws-cdk/aws-ecs-patterns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,3 +358,22 @@ scalableTarget.scaleOnMemoryUtilization('MemoryScaling', {
targetUtilizationPercent: 50,
});
```

### Set deployment configuration on QueueProcessingService

```ts
const queueProcessingFargateService = new QueueProcessingFargateService(stack, 'Service', {
cluster,
memoryLimitMiB: 512,
image: ecs.ContainerImage.fromRegistry('test'),
command: ["-c", "4", "amazon.com"],
enableLogging: false,
desiredTaskCount: 2,
environment: {},
queue,
maxScalingCapacity: 5,
maxHealthyPercent: 200,
minHealthPercent: 66,
});
```

Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,24 @@ export interface QueueProcessingServiceBaseProps {
* @default - Automatically generated name.
*/
readonly family?: string;

/**
* The maximum number of tasks, specified as a percentage of the Amazon ECS
* service's DesiredCount value, that can run in a service during a
* deployment.
*
* @default - default from underlying service.
*/
readonly maxHealthyPercent?: number;

/**
* The minimum number of tasks, specified as a percentage of
* the Amazon ECS service's DesiredCount value, that must
* continue to run and remain healthy during a deployment.
*
* @default - default from underlying service.
*/
readonly minHealthyPercent?: number;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ export class QueueProcessingEc2Service extends QueueProcessingServiceBase {
desiredCount: this.desiredCount,
taskDefinition: this.taskDefinition,
serviceName: props.serviceName,
minHealthyPercent: props.minHealthyPercent,
maxHealthyPercent: props.maxHealthyPercent,
propagateTags: props.propagateTags,
enableECSManagedTags: props.enableECSManagedTags,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ export class QueueProcessingFargateService extends QueueProcessingServiceBase {
desiredCount: this.desiredCount,
taskDefinition: this.taskDefinition,
serviceName: props.serviceName,
minHealthyPercent: props.minHealthyPercent,
maxHealthyPercent: props.maxHealthyPercent,
propagateTags: props.propagateTags,
enableECSManagedTags: props.enableECSManagedTags,
platformVersion: props.platformVersion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,19 @@ export = {
},
queue,
maxScalingCapacity: 5,
minHealthyPercent: 60,
maxHealthyPercent: 150,
serviceName: 'ecs-test-service',
family: 'ecs-task-family',
});

// THEN - QueueWorker is of EC2 launch type, an SQS queue is created and all optional properties are set.
expect(stack).to(haveResource('AWS::ECS::Service', {
DesiredCount: 2,
DeploymentConfiguration: {
MinimumHealthyPercent: 60,
MaximumPercent: 150,
},
LaunchType: 'EC2',
ServiceName: 'ecs-test-service',
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ export = {
},
queue,
maxScalingCapacity: 5,
minHealthyPercent: 60,
maxHealthyPercent: 150,
serviceName: 'fargate-test-service',
family: 'fargate-task-family',
platformVersion: ecs.FargatePlatformVersion.VERSION1_4,
Expand All @@ -231,6 +233,10 @@ export = {
// THEN - QueueWorker is of FARGATE launch type, an SQS queue is created and all optional properties are set.
expect(stack).to(haveResource('AWS::ECS::Service', {
DesiredCount: 2,
DeploymentConfiguration: {
MinimumHealthyPercent: 60,
MaximumPercent: 150,
},
LaunchType: 'FARGATE',
ServiceName: 'fargate-test-service',
PlatformVersion: ecs.FargatePlatformVersion.VERSION1_4,
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-lambda-nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@aws-cdk/assert": "0.0.0",
"cdk-build-tools": "0.0.0",
"cdk-integ-tools": "0.0.0",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"pkglint": "0.0.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/cfnspec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@types/nodeunit": "^0.0.31",
"cdk-build-tools": "0.0.0",
"fast-json-patch": "^2.2.1",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"json-diff": "^0.5.4",
"nodeunit": "^0.11.3",
"pkglint": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/custom-resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"cdk-build-tools": "0.0.0",
"cdk-integ-tools": "0.0.0",
"cfn2ts": "0.0.0",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"nock": "^12.0.3",
"pkglint": "0.0.0",
"sinon": "^9.0.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/region-info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"devDependencies": {
"@types/fs-extra": "^8.1.0",
"cdk-build-tools": "0.0.0",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"pkglint": "0.0.0"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"cdk-assets": "0.0.0",
"colors": "^1.4.0",
"decamelize": "^4.0.0",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"glob": "^7.1.6",
"json-diff": "^0.5.4",
"minimatch": ">=3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/decdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
"@aws-cdk/cx-api": "0.0.0",
"@aws-cdk/region-info": "0.0.0",
"constructs": "^3.0.2",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"jsii-reflect": "^1.6.0",
"jsonschema": "^1.2.6",
"yaml": "1.9.2",
Expand Down
9 changes: 5 additions & 4 deletions packages/monocdk-experiment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"exclude": [
"package-info/maturity",
"jsii/java",
"jsii/python"
"jsii/python",
"jsii/dotnet"
]
},
"jsii": {
Expand All @@ -51,15 +52,15 @@
"outdir": "dist",
"targets": {
"dotnet": {
"namespace": "Amazon.CDK.MonoCDK.Experiment",
"namespace": "Amazon.CDK",
"packageId": "Amazon.CDK.MonoCDK.Experiment",
"iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png",
"versionSuffix": "-devpreview",
"signAssembly": true,
"assemblyOriginatorKeyFile": "../../key.snk"
},
"java": {
"package": "software.amazon.awscdk.monocdkexperiment",
"package": "software.amazon.awscdk.core",
"maven": {
"groupId": "software.amazon.awscdk",
"artifactId": "monocdk-experiment",
Expand Down Expand Up @@ -247,7 +248,7 @@
"@types/fs-extra": "^8.1.1",
"@types/node": "^10.17.24",
"cdk-build-tools": "0.0.0",
"fs-extra": "^9.0.0",
"fs-extra": "^9.0.1",
"pkglint": "0.0.0",
"ts-node": "^8.10.2",
"typescript": "~3.8.3"
Expand Down
2 changes: 1 addition & 1 deletion tools/awslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@jsii/spec": "^1.6.0",
"camelcase": "^6.0.0",
"colors": "^1.4.0",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"jsii-reflect": "^1.6.0",
"yargs": "^15.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion tools/cdk-build-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"eslint-import-resolver-node": "^0.3.3",
"eslint-import-resolver-typescript": "^2.0.0",
"eslint-plugin-import": "^2.20.2",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"jest": "^25.5.4",
"jsii": "^1.6.0",
"jsii-pacmak": "^1.6.0",
Expand Down
2 changes: 1 addition & 1 deletion tools/cdk-integ-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@aws-cdk/cloudformation-diff": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"aws-cdk": "0.0.0",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"yargs": "^15.3.1"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion tools/cfn2ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@aws-cdk/cfnspec": "0.0.0",
"codemaker": "^1.6.0",
"fast-json-patch": "^3.0.0-1",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"yargs": "^15.3.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion tools/pkglint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"dependencies": {
"case": "^1.6.3",
"colors": "^1.4.0",
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"semver": "^7.2.2",
"yargs": "^15.3.1"
}
Expand Down
2 changes: 1 addition & 1 deletion tools/pkgtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"pkglint": "0.0.0"
},
"dependencies": {
"fs-extra": "^8.1.0",
"fs-extra": "^9.0.1",
"yargs": "^15.3.1"
},
"keywords": [
Expand Down
15 changes: 5 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4418,10 +4418,10 @@ fs-extra@^8.1.0:
jsonfile "^4.0.0"
universalify "^0.1.0"

fs-extra@^9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.0.0.tgz#b6afc31036e247b2466dc99c29ae797d5d4580a3"
integrity sha512-pmEYSk3vYsG/bF651KPUXZ+hvjpgWYw/Gc7W9NFUe3ZVLczKKWIij3IKpOrQcdw4TILtibFslZ0UmR8Vvzig4g==
fs-extra@^9.0.0, fs-extra@^9.0.1:
version "9.0.1"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc"
integrity sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==
dependencies:
at-least-node "^1.0.0"
graceful-fs "^4.2.0"
Expand Down Expand Up @@ -4714,12 +4714,7 @@ globrex@^0.1.1:
resolved "https://registry.yarnpkg.com/globrex/-/globrex-0.1.2.tgz#dd5d9ec826232730cd6793a5e33a9302985e6098"
integrity sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==

graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2:
version "4.2.3"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.3.tgz#4a12ff1b60376ef09862c2093edd908328be8423"
integrity sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==

graceful-fs@^4.2.4:
graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2, graceful-fs@^4.2.4:
version "4.2.4"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb"
integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==
Expand Down

0 comments on commit 1cd832b

Please sign in to comment.