Skip to content

Commit d5fa31f

Browse files
authored
Merge pull request #7861 from aws/bump/1.38.0
chore(release): 1.38.0
2 parents e4709de + 8592a51 commit d5fa31f

File tree

217 files changed

+7779
-3644
lines changed

Some content is hidden

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

217 files changed

+7779
-3644
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
with:
1515
# Setting messages to an empty string will cause the automation to skip
1616
# that category
17-
ancient-issue-message: This issue has not received any attention in 3 years. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
17+
ancient-issue-message: This issue has not received any attention in 2 years. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
1818
stale-issue-message: This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
1919
stale-pr-message: This PR has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
2020

2121
# These labels are required
2222
stale-issue-label: closing-soon
2323
exempt-issue-label: no-autoclose
24-
stale-pr-label: pr/no-activity
24+
stale-pr-label: closing-soon
2525
exempt-pr-label: no-autoclose
2626
response-requested-label: response-requested
2727

@@ -32,7 +32,7 @@ jobs:
3232
# Issue timing
3333
days-before-stale: 7
3434
days-before-close: 4
35-
days-before-ancient: 1095
35+
days-before-ancient: 730
3636

3737
# If you don't want to mark a issue as being ancient based on a
3838
# threshold of "upvotes", you can set this here. An "upvote" is
@@ -43,4 +43,4 @@ jobs:
4343
repo-token: ${{ secrets.GITHUB_TOKEN }}
4444
# loglevel: DEBUG
4545
# Set dry-run to true to not perform label or close actions.
46-
dry-run: true
46+
dry-run: false

CHANGELOG.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,37 @@
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.38.0](https://github.com/aws/aws-cdk/compare/v1.37.0...v1.38.0) (2020-05-08)
6+
7+
8+
### Features
9+
10+
* **cloudfront:** support geo restrictions for cloudfront distribution ([#7345](https://github.com/aws/aws-cdk/issues/7345)) ([cf25ba0](https://github.com/aws/aws-cdk/commit/cf25ba0dc3baae8db40219611f7aa919b108c739)), closes [#3456](https://github.com/aws/aws-cdk/issues/3456)
11+
* **cloudwatch:** legend positions in GraphWidgets ([ada0de1](https://github.com/aws/aws-cdk/commit/ada0de1f051a72768523544b5bca27e0768632a9)), closes [#3625](https://github.com/aws/aws-cdk/issues/3625)
12+
* **codebuild:** add support for test reports ([4befefc](https://github.com/aws/aws-cdk/commit/4befefc4792c6d6415f356f8d40e115e9e602802)), closes [#7367](https://github.com/aws/aws-cdk/issues/7367)
13+
* **core:** custom resource provider helper ([4a76973](https://github.com/aws/aws-cdk/commit/4a7697370c9d04fdbb2c9fb0be71d67122573390))
14+
* **ec2:** EBS volume configuration for BastionHostLinux ([207a8ec](https://github.com/aws/aws-cdk/commit/207a8ecf233511ad478827620b9caf0ff5fbb815)), closes [#6945](https://github.com/aws/aws-cdk/issues/6945)
15+
* **ecs:** support multiple security groups when creating an ecs service ([#7850](https://github.com/aws/aws-cdk/issues/7850)) ([456c469](https://github.com/aws/aws-cdk/commit/456c469dd4b92a6a863e4c40125adf573d4df239))
16+
* **iam:** openid connect providers ([20621ac](https://github.com/aws/aws-cdk/commit/20621acf6c1adbf144d47a029888fe481d5abb78)), closes [#5388](https://github.com/aws/aws-cdk/issues/5388) [#3949](https://github.com/aws/aws-cdk/issues/3949) [#6308](https://github.com/aws/aws-cdk/issues/6308)
17+
* add an example construct package ([#7748](https://github.com/aws/aws-cdk/issues/7748)) ([2223584](https://github.com/aws/aws-cdk/commit/2223584d5f9811294125c6d6068d1f5bb4e48349))
18+
* **lambda-nodejs:** run parcel in a docker container ([d86e500](https://github.com/aws/aws-cdk/commit/d86e5001e08c21b846c47ed051f6c17fc9826d1a)), closes [#7169](https://github.com/aws/aws-cdk/issues/7169)
19+
* cloudformation spec v14.1.0 ([#7822](https://github.com/aws/aws-cdk/issues/7822)) ([e133027](https://github.com/aws/aws-cdk/commit/e1330273fbc700285d737e57a8d20f2857be2f82))
20+
* **s3:** new `s3UrlForObject` method on `IBucket` ([#7508](https://github.com/aws/aws-cdk/issues/7508)) ([8fe4015](https://github.com/aws/aws-cdk/commit/8fe4015a9357623434fb2825e3342ffc145a13f8)), closes [#7507](https://github.com/aws/aws-cdk/issues/7507)
21+
* **stepfunctions:** custom state as an escape hatch ([c498f60](https://github.com/aws/aws-cdk/commit/c498f60d34b5bd01fc95f7999bc605e10edbb717))
22+
23+
24+
### Bug Fixes
25+
26+
* **assets): fix(assets:** invalid fingerprint when 'exclude' captures root directory name ([#7719](https://github.com/aws/aws-cdk/issues/7719)) ([a5c06a3](https://github.com/aws/aws-cdk/commit/a5c06a3a27b39a5315d0cfd0d34b3c1b25cfc464)), closes [#7718](https://github.com/aws/aws-cdk/issues/7718)
27+
* **aws-batch:** gpuCount was ignored in JobDefinition creation ([#7587](https://github.com/aws/aws-cdk/issues/7587)) ([0f1bf23](https://github.com/aws/aws-cdk/commit/0f1bf23817774eb94505a6c68f1daa8a117bbd42))
28+
* **cli:** parameter value reuse is not configurable ([44310c9](https://github.com/aws/aws-cdk/commit/44310c93af939f8aaf9ca4245c944b5c93f61ab7)), closes [#7041](https://github.com/aws/aws-cdk/issues/7041)
29+
* **core:** docs refer to "createNamingScheme" which was renamed to "allocateLogicalId" ([#7840](https://github.com/aws/aws-cdk/issues/7840)) ([d79595d](https://github.com/aws/aws-cdk/commit/d79595d854adf160c0a6395a5f535ee270bbdf69)), closes [#7527](https://github.com/aws/aws-cdk/issues/7527)
30+
* **ecs:** update minHealthyPercent constrain for ec2service using daemon strategy ([#7814](https://github.com/aws/aws-cdk/issues/7814)) ([19e3fd8](https://github.com/aws/aws-cdk/commit/19e3fd800af5a32dfb359f4be4717fbf3adb91df))
31+
* **ecs:** using secret JSON field with fargate task does not fail ([#7317](https://github.com/aws/aws-cdk/issues/7317)) ([cb03a60](https://github.com/aws/aws-cdk/commit/cb03a601599b56539081caf602647d1f431d2d59)), closes [#7272](https://github.com/aws/aws-cdk/issues/7272)
32+
* **eks:** "vendor response doesn't contain attribute" when updating version ([#7830](https://github.com/aws/aws-cdk/issues/7830)) ([8cabae0](https://github.com/aws/aws-cdk/commit/8cabae0a03cc526f5f7fbfebf22978ad88efcb4f)), closes [#7526](https://github.com/aws/aws-cdk/issues/7526) [#7794](https://github.com/aws/aws-cdk/issues/7794)
33+
* **s3:** grantDelete with KMS SSE ([#7528](https://github.com/aws/aws-cdk/issues/7528)) ([c6d1a21](https://github.com/aws/aws-cdk/commit/c6d1a21b09967d787404101829058106ed74852a)), closes [#4380](https://github.com/aws/aws-cdk/issues/4380)
34+
* **secretsmanager:** add kms policy to allow secret to use kms key ([5460717](https://github.com/aws/aws-cdk/commit/54607175115663bd49d8a57cb82b814414e7e78a))
35+
536
## [1.37.0](https://github.com/aws/aws-cdk/compare/v1.36.0...v1.37.0) (2020-05-05)
637

738

@@ -23,7 +54,6 @@ maps to the domain root.
2354
* **core:** move all types from "aws-cloudformation" to "core" ([#7736](https://github.com/aws/aws-cdk/issues/7736)) ([40fa93a](https://github.com/aws/aws-cdk/commit/40fa93a22ffbdf18b0563d1cef63bbf5814dcc3f)), closes [#4896](https://github.com/aws/aws-cdk/issues/4896) [#7035](https://github.com/aws/aws-cdk/issues/7035) [#7034](https://github.com/aws/aws-cdk/issues/7034)
2455
* **core:** stack termination protection ([#7610](https://github.com/aws/aws-cdk/issues/7610)) ([7ed60b8](https://github.com/aws/aws-cdk/commit/7ed60b8a5d42e93e556e3b6e9ee3618931747ac2)), closes [#1682](https://github.com/aws/aws-cdk/issues/1682)
2556
* **ecr:** support imageScanOnPush when creating the repository ([9df5486](https://github.com/aws/aws-cdk/commit/9df5486306fda01d963f4b1195fe8c8532cc4668)), closes [#7471](https://github.com/aws/aws-cdk/issues/7471)
26-
* **lambda-nodejs:** use docker instead of npm package for parcel-bundler ([55c4d0b](https://github.com/aws/aws-cdk/commit/55c4d0bb35aad7b026a88cf1a38a37af9af33f9f))
2757

2858

2959
### Bug Fixes

CONTRIBUTING.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ For day-to-day development and normal contributions, the following SDKs and tool
5151
- [Node.js 10.13.0](https://nodejs.org/download/release/latest-v10.x/)
5252
- [Yarn >= 1.19.1](https://yarnpkg.com/lang/en/docs/install)
5353
- [Java OpenJDK 8](http://openjdk.java.net/install/)
54-
- [.NET Core SDK 3.0](https://www.microsoft.com/net/download)
54+
- [.NET Core SDK 3.1](https://www.microsoft.com/net/download)
5555
- [Python 3.6.5](https://www.python.org/downloads/release/python-365/)
5656
- [Ruby 2.5.1](https://www.ruby-lang.org/en/news/2018/03/28/ruby-2-5-1-released/)
5757

@@ -131,6 +131,11 @@ Work your magic. Here are some guidelines:
131131
* Try to maintain a single feature/bugfix per pull request. It's okay to introduce a little bit of housekeeping
132132
changes along the way, but try to avoid conflating multiple features. Eventually all these are going to go into a
133133
single commit, so you can use that to frame your scope.
134+
* If your change introduces a new construct, take a look at the our
135+
[example Construct Library](packages/@aws-cdk/example-construct-library) for an explanation of the common patterns we use.
136+
Feel free to start your contribution by copy&pasting files from that project,
137+
and then edit and rename them as appropriate -
138+
it might be easier to get started that way.
134139

135140
#### Integration Tests
136141

allowed-breaking-changes.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ incompatible-argument:@aws-cdk/aws-iam.PrincipalPolicyFragment.<initializer>
4949
changed-type:@aws-cdk/aws-iam.FederatedPrincipal.conditions
5050
changed-type:@aws-cdk/aws-iam.PrincipalPolicyFragment.conditions
5151
changed-type:@aws-cdk/aws-iam.PrincipalWithConditions.conditions
52+
# Changing untyped property blob into typed property blob
53+
change-return-type:@aws-cdk/cloud-assembly-schema.Manifest.load
54+
incompatible-argument:@aws-cdk/cloud-assembly-schema.Manifest.save

buildspec-pr.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ version: 0.2
55
phases:
66
install:
77
commands:
8+
# Start docker daemon inside the container
9+
- nohup /usr/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2&
10+
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
11+
812
# Install yarn if it wasn't already present in the image
913
- yarn --version || npm -g install yarn
1014
build:

buildspec.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ version: 0.2
55
phases:
66
install:
77
commands:
8+
# Start docker daemon inside the container
9+
- nohup /usr/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2&
10+
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
11+
812
# Install yarn if it wasn't already present in the image
913
- yarn --version || npm -g install yarn
1014
pre_build:

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"tools/*"
1111
],
1212
"rejectCycles": "true",
13-
"version": "1.37.0"
13+
"version": "1.38.0"
1414
}

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,18 @@
1616
"devDependencies": {
1717
"conventional-changelog-cli": "^2.0.31",
1818
"fs-extra": "^8.1.0",
19-
"jsii-diff": "^1.4.1",
20-
"jsii-pacmak": "^1.4.1",
21-
"jsii-rosetta": "^1.4.1",
19+
"jsii-diff": "^1.5.0",
20+
"jsii-pacmak": "^1.5.0",
21+
"jsii-rosetta": "^1.5.0",
2222
"lerna": "^3.20.2",
23-
"standard-version": "^7.1.0",
23+
"standard-version": "^8.0.0",
2424
"graceful-fs": "^4.2.4",
2525
"typescript": "~3.8.3"
2626
},
27+
"resolutions-comment": "should be removed or reviewed when nodeunit dependency is dropped or adjusted",
28+
"resolutions": {
29+
"tap-mocha-reporter": "^5.0.1"
30+
},
2731
"repository": {
2832
"type": "git",
2933
"url": "git://github.com/aws/aws-cdk"

packages/@aws-cdk/assert/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"cdk-build-tools": "0.0.0",
3434
"jest": "^25.5.4",
3535
"pkglint": "0.0.0",
36-
"ts-jest": "^25.4.0"
36+
"ts-jest": "^25.5.0"
3737
},
3838
"dependencies": {
3939
"@aws-cdk/cloudformation-diff": "0.0.0",

packages/@aws-cdk/aws-batch/lib/job-definition.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ export class JobDefinition extends Resource implements IJobDefinition {
337337
memory: container.memoryLimitMiB || 4,
338338
mountPoints: container.mountPoints,
339339
privileged: container.privileged || false,
340+
resourceRequirements: container.gpuCount
341+
? [{ type: 'GPU', value: String(container.gpuCount) }]
342+
: undefined,
340343
readonlyRootFilesystem: container.readOnly || false,
341344
ulimits: container.ulimits,
342345
user: container.user,

0 commit comments

Comments
 (0)