Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into alexcheema/docker-p…
Browse files Browse the repository at this point in the history
…arcel-bundler
  • Loading branch information
AlexCheema committed Apr 3, 2020
2 parents ea0e032 + 26a69b1 commit 3f9db92
Show file tree
Hide file tree
Showing 517 changed files with 24,854 additions and 8,165 deletions.
9 changes: 4 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
### Commit Message

COMMIT MESSAGE HERE (preserve newline after "Commit Message" heading)

### End Commit Message

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*

<!--
Please read the contribution guidelines and follow the pull-request checklist:
https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md
-->
4 changes: 3 additions & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ pull_request_rules:
- status-success=mandatory-changes
- name: remove stale reviews
actions:
dismiss_reviews: {}
dismiss_reviews:
approved: true
changes_requested: true
conditions:
- author!=dependabot[bot]
- author!=dependabot-preview[bot]
Expand Down
1 change: 0 additions & 1 deletion .yarnrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
--install.check-files true # install will verify file tree of packages for consistency
--install.audit true # Run vulnerability audit on installed packages
68 changes: 68 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,74 @@

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.31.0](https://github.com/aws/aws-cdk/compare/v1.30.0...v1.31.0) (2020-03-24)


### ⚠ BREAKING CHANGES

* .NET Core v3.1 is required with JSII v1.1

### Features

* **cloud9:** Support Cloud9 EC2 Environment ([#6298](https://github.com/aws/aws-cdk/issues/6298)) ([f50b876](https://github.com/aws/aws-cdk/commit/f50b8769548c34a66cf05079d1ac721c83992840))
* **codepipeline:** add experimental support for the BitBucket source action ([#6756](https://github.com/aws/aws-cdk/issues/6756)) ([95bb1ad](https://github.com/aws/aws-cdk/commit/95bb1ad60e600007421acd6d160e0d7fb9bc0389)), closes [#6710](https://github.com/aws/aws-cdk/issues/6710)
* **eks:** KubernetesPatch ([#6753](https://github.com/aws/aws-cdk/issues/6753)) ([c7fab5b](https://github.com/aws/aws-cdk/commit/c7fab5b29aca518fb6e1c8f2868d915885fedf04)), closes [#6723](https://github.com/aws/aws-cdk/issues/6723)
* **events:** AWS Batch event target ([#6570](https://github.com/aws/aws-cdk/issues/6570)) ([73899a9](https://github.com/aws/aws-cdk/commit/73899a95ffe52c51ff77155fd654c2b4cdef7241))


### Bug Fixes

* **acm:** Allow tokens as a part of the hosted zone name ([#6685](https://github.com/aws/aws-cdk/issues/6685)) ([acfb6ef](https://github.com/aws/aws-cdk/commit/acfb6ef8b5f94c04206c3afc8d12bfaf87c1a650)), closes [#6133](https://github.com/aws/aws-cdk/issues/6133)
* **aws-ecs-patterns:** only create an A record if LB is public ([#6895](https://github.com/aws/aws-cdk/issues/6895)) ([f31f4e1](https://github.com/aws/aws-cdk/commit/f31f4e128d5f9dd8d673ac2a3c28d792d1427dda)), closes [#6702](https://github.com/aws/aws-cdk/issues/6702)
* **cdk-assets:** context path not honored by Docker asset build ([#6957](https://github.com/aws/aws-cdk/issues/6957)) ([1edd507](https://github.com/aws/aws-cdk/commit/1edd5076e8a5b4e2194c73e395d1712f74cd2ba1)), closes [#6954](https://github.com/aws/aws-cdk/issues/6954) [#6814](https://github.com/aws/aws-cdk/issues/6814)
* **cloudwatch:** unhelpful error when reusing metric IDs ([#6892](https://github.com/aws/aws-cdk/issues/6892)) ([60253a3](https://github.com/aws/aws-cdk/commit/60253a319d6f185cf807ca45dac4ce0be4ab5777))
* **cognito:** user pool - link style email verification fails to deploy ([#6938](https://github.com/aws/aws-cdk/issues/6938)) ([b5c60d5](https://github.com/aws/aws-cdk/commit/b5c60d50a6c4fb7e93185c5874a2651ba40d0247)), closes [#6811](https://github.com/aws/aws-cdk/issues/6811)
* **ec2:** spelling error in Instance's subnet selection logic. ([#6752](https://github.com/aws/aws-cdk/issues/6752)) ([564561a](https://github.com/aws/aws-cdk/commit/564561a5462b78bc29cd6d6968abe6b05a670df2))
* **iam:** immutable role cannot be used as a construct ([#6920](https://github.com/aws/aws-cdk/issues/6920)) ([56be032](https://github.com/aws/aws-cdk/commit/56be032149f3e698120f7653e36ef1fea565f952)), closes [#6885](https://github.com/aws/aws-cdk/issues/6885)


* .NET Core 3.1 is required with JSII v1.1 ([#6951](https://github.com/aws/aws-cdk/issues/6951)) ([24f12d6](https://github.com/aws/aws-cdk/commit/24f12d6931fc107cc959404516e5c33001c6f7f5))

## [1.30.0](https://github.com/aws/aws-cdk/compare/v1.29.0...v1.30.0) (2020-03-18)


### Features

* **cloudwatch:** standard set of graph colors ([#6747](https://github.com/aws/aws-cdk/issues/6747)) ([97ae931](https://github.com/aws/aws-cdk/commit/97ae931ea4d8333d1846fc3bc801430b000fa606))


### Bug Fixes

* **core:** IConstruct no longer extends IDependable ([#6794](https://github.com/aws/aws-cdk/issues/6794)) ([19bb16a](https://github.com/aws/aws-cdk/commit/19bb16a0feb5b482223dd193354447065ac06f8f)), closes [#6792](https://github.com/aws/aws-cdk/issues/6792)

## [1.29.0](https://github.com/aws/aws-cdk/compare/v1.28.0...v1.29.0) (2020-03-18)

:rocket: To enable new CDK projects such as [CDK for Kubernetes](https://github.com/awslabs/cdk8s), we have released the **constructs programming model** as an independent library called [constructs](https://github.com/aws/constructs). The `@aws-cdk/core.Construct` class is now a subclass of the base `constructs.Construct`.

### ⚠ BREAKING CHANGES

* **cognito:** `UserPoolAttribute` has been removed. It is no longer
required to defined a `UserPool`.
* **ec2:** if you implemented a custom subclass of `IMachineImage` it must now always return a `userData` object.

### Features

* **cli:** add permissions to the bootstrap action role for `cdk deploy` ([#6684](https://github.com/aws/aws-cdk/issues/6684)) ([52fd078](https://github.com/aws/aws-cdk/commit/52fd078abcc93876aa7423949e1e6090644cf95d))
* **codebuild:** add support for Source Credentials ([#6722](https://github.com/aws/aws-cdk/issues/6722)) ([a6e2d28](https://github.com/aws/aws-cdk/commit/a6e2d288a07b75c2b97c86f90d1d82b850f81620))
* **cognito:** user pool - custom & mandatory standard attributes ([#6487](https://github.com/aws/aws-cdk/issues/6487)) ([6dfb677](https://github.com/aws/aws-cdk/commit/6dfb67726dfc9c70f2fc448fac58eb3b550296a1)), closes [#1747](https://github.com/aws/aws-cdk/issues/1747)
* **cognito:** user pool - MFA, password policy and email settings ([#6717](https://github.com/aws/aws-cdk/issues/6717)) ([cc35dad](https://github.com/aws/aws-cdk/commit/cc35dadacc94bfbdba1d83faa55bf1c4cf534485))
* **core:** the "constructs" module ([#6623](https://github.com/aws/aws-cdk/issues/6623)) ([eded95b](https://github.com/aws/aws-cdk/commit/eded95bc0dac7c292a0093365708aba8c11ca09a))
* **ec2:** availabilityZone is optional when importing subnet ([d10fe67](https://github.com/aws/aws-cdk/commit/d10fe67664f01db568da7f81af12ff647e75fa05)), closes [#6607](https://github.com/aws/aws-cdk/issues/6607)
* **lambda-event-sources:** failure handling for stream event sources ([#5929](https://github.com/aws/aws-cdk/issues/5929)) ([5028009](https://github.com/aws/aws-cdk/commit/50280092ab2c0a2c8e19177c4a70f8a7c0f3c5fb)), closes [#5236](https://github.com/aws/aws-cdk/issues/5236)


### Bug Fixes

* **aws-ecs-pattern:** allow ScheduledTaskBase to run on a public subnet ([#6624](https://github.com/aws/aws-cdk/issues/6624)) ([b9a1408](https://github.com/aws/aws-cdk/commit/b9a14087c9d7260c71cce9a96718dcb75ece538e)), closes [#6312](https://github.com/aws/aws-cdk/issues/6312)
* SecretValue.secretManager validates non-ARN ids do not contain : ([#6371](https://github.com/aws/aws-cdk/issues/6371)) ([7cb8c3f](https://github.com/aws/aws-cdk/commit/7cb8c3fb6d0c150bf4325ca0f51688806c8f29d1))
* **aws-logs:** remove validation of retentionInDays for unresolved tokens ([#6727](https://github.com/aws/aws-cdk/issues/6727)) ([43a3420](https://github.com/aws/aws-cdk/commit/43a3420c91a3f4989f22d3eda9d7d448658f9aeb)), closes [#6690](https://github.com/aws/aws-cdk/issues/6690)
* **ec2:** MachineImages create appropriate UserData ([7a10f0f](https://github.com/aws/aws-cdk/commit/7a10f0f9b9e8e4c9816a4f28335cca77a915b15f))

## [1.28.0](https://github.com/aws/aws-cdk/compare/v1.27.0...v1.28.0) (2020-03-16)


Expand Down
22 changes: 22 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ and let us know if it's not up-to-date (even better, submit a PR with your corr
- [Full clean build](#full-clean-build)
- [Full Docker build](#full-docker-build)
- [Partial build](#partial-build)
- [Partial pack](#partial-pack)
- [Quick Iteration](#quick-iteration)
- [Linking against this repository](#linking-against-this-repository)
- [Running integration tests in parallel](#running-integration-tests-in-parallel)
Expand Down Expand Up @@ -424,6 +425,27 @@ $ ../../../scripts/buildup
Note that `buildup` uses `foreach.sh`, which means it's resumable. If your build fails and you wish to resume, just run
`buildup --resume`. If you wish to restart, run `buildup` again.

### Partial pack

Packing involves generating CDK code in the various target languages, and packaged up ready to be published to the
respective package managers. Once in a while, these will need to be generated either to test the experience of a new
feature, or reproduce a packaging failure.

Before running this, make sure either that the CDK module and all of its dependencies are already built. See [Partial
build](#partial-build) or [Full clean build](#full-clean-build).

To package a specific module, say the `@aws-cdk/aws-ec2` module:

```console
$ cd <root-of-cdk-repo>
$ docker run --rm --net=host -it -v $PWD:$PWD -w $PWD jsii/superchain
docker$ cd packages/@aws-cdk/aws-ec2
docker$ ../../../scripts/foreach.sh --up yarn run package
docker$ exit
```

The `dist/` folder within each module contains the packaged up language artifacts.

### Quick Iteration

After you've built the modules you want to work on once, use `lr watch` for each module that you are modifying.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The CDK is available in the following languages:
* JavaScript, TypeScript ([Node.js ≥ 10.3.0](https://nodejs.org/download/release/latest-v10.x/))
* Python ([Python ≥ 3.6](https://www.python.org/downloads/))
* Java ([Java ≥ 8](https://www.oracle.com/technetwork/java/javase/downloads/index.html) and [Maven ≥ 3.5.4](https://maven.apache.org/download.cgi))
* .NET ([.NET Core ≥ 3.0](https://dotnet.microsoft.com/download))
* .NET ([.NET Core ≥ 3.1](https://dotnet.microsoft.com/download))

-------

Expand Down
1 change: 0 additions & 1 deletion buildspec-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ phases:
commands:
# Install yarn if it wasn't already present in the image
- yarn --version || npm -g install yarn
- yarn install --frozen-lockfile
build:
commands:
- /bin/bash ./build.sh && git diff-index --exit-code --ignore-space-at-eol --stat HEAD
1 change: 0 additions & 1 deletion buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ phases:
commands:
# Install yarn if it wasn't already present in the image
- yarn --version || npm -g install yarn
- yarn install --frozen-lockfile
pre_build:
commands:
- /bin/bash ./fetch-dotnet-snk.sh
Expand Down
19 changes: 2 additions & 17 deletions design/cdk-bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,6 @@ The naming scheme will include the following elements in order to minimize the c
* The account ID we're bootstrapping in.
* The type of the resource (file assets bucket, Docker assets repository, etc.).

### Removing existing customization options

The existing customization options: `--bootstrap-bucket-name` and `--bootstrap-kms-key-id` will be removed.
We will need to know the names of the bootstrap bucket and KMS key and synthesis time.

The only way to customize the bootstrap template will be to deploy your own,
based on the default one the CDK provides,
and then change the default options when creating instances of the `Stack`
class to match the names used in the custom template
(this customization will most likely require overriding some methods,
so probably involves implementing a custom subclass of `Stack`).

### CLI options in detail

#### Existing kept options
Expand All @@ -109,10 +97,6 @@ and need to be kept for backwards compatibility reasons:

* `--tags` / `-t`: a list of key=value pairs to add as tags to add to the bootstrap stack.

#### Existing removed options

The following options that exist today will be removed:

* `--toolkit-bucket-name` / `--bootstrap-bucket-name` / `-b`: allows you to explicitly name the file assets S3 bucket
(instead of relying on the default naming scheme).

Expand All @@ -129,6 +113,7 @@ These options will be added to the `bootstrap` command:

* `--cloudformation-execution-policies`: allows specifying the ManagedPolicy ARN(s)
that should be attached to the **CloudFormation Execution Role**.
This option is required if `--trust` was passed.

## Bootstrap resources version

Expand Down Expand Up @@ -338,4 +323,4 @@ This should make sure the CFN update succeeds.
## Bootstrap template

The bootstrap template used by the CLI command can be found in the
[aws-cdk package](../packages/aws-cdk/lib/api/bootstrap/bootstrap-template.json).
[aws-cdk package](../packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml).
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.28.0"
"version": "1.31.0"
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"conventional-changelog-cli": "^2.0.31",
"fs-extra": "^8.1.0",
"jsii-diff": "^1.1.0",
"jsii-pacmak": "^0.22.0",
"jsii-rosetta": "^0.22.0",
"jsii-pacmak": "^1.1.0",
"jsii-rosetta": "^1.1.0",
"lerna": "^3.20.2",
"standard-version": "^7.1.0",
"typescript": "~3.8.3"
Expand Down Expand Up @@ -58,4 +58,4 @@
"@aws-cdk/cx-api/semver/**"
]
}
}
}
11 changes: 8 additions & 3 deletions packages/@aws-cdk/alexa-ask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,18 @@
"pkglint": "0.0.0"
},
"dependencies": {
"@aws-cdk/core": "0.0.0"
"@aws-cdk/core": "0.0.0",
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0"
"@aws-cdk/core": "0.0.0",
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
},
"stability": "experimental"
"stability": "experimental",
"awscdkio": {
"announce": false
}
}
11 changes: 8 additions & 3 deletions packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,16 @@
"@aws-cdk/aws-events": "0.0.0",
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0"
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^2.0.0"
},
"devDependencies": {
"@aws-cdk/assert": "0.0.0",
"@aws-cdk/aws-s3": "0.0.0",
"@types/nodeunit": "^0.0.30",
"cdk-build-tools": "0.0.0",
"cdk-integ-tools": "0.0.0",
"fast-check": "^1.22.2",
"fast-check": "^1.24.1",
"nodeunit": "^0.11.3",
"pkglint": "0.0.0"
},
Expand Down Expand Up @@ -83,7 +84,8 @@
"@aws-cdk/aws-events": "0.0.0",
"@aws-cdk/aws-iam": "0.0.0",
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0"
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand All @@ -97,5 +99,8 @@
"docs-public-apis:@aws-cdk/app-delivery.PipelineDeployStackAction.onStateChange",
"docs-public-apis:@aws-cdk/app-delivery.PipelineDeployStackActionProps"
]
},
"awscdkio": {
"announce": false
}
}
10 changes: 6 additions & 4 deletions packages/@aws-cdk/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,22 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/jest": "^25.1.4",
"@types/jest": "^25.1.5",
"cdk-build-tools": "0.0.0",
"jest": "^24.9.0",
"pkglint": "0.0.0",
"ts-jest": "^25.2.0"
"ts-jest": "^25.3.1"
},
"dependencies": {
"@aws-cdk/cloudformation-diff": "0.0.0",
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0"
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"jest": "^24.9.0"
"jest": "^24.9.0",
"constructs": "^2.0.0"
},
"repository": {
"url": "https://github.com/aws/aws-cdk.git",
Expand Down
11 changes: 8 additions & 3 deletions packages/@aws-cdk/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@aws-cdk/assert": "0.0.0",
"@types/minimatch": "^3.0.3",
"@types/nodeunit": "^0.0.30",
"@types/sinon": "^7.5.2",
"@types/sinon": "^9.0.0",
"aws-cdk": "0.0.0",
"cdk-build-tools": "0.0.0",
"cdk-integ-tools": "0.0.0",
Expand All @@ -78,12 +78,14 @@
"dependencies": {
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0",
"minimatch": "^3.0.4"
"minimatch": "^3.0.4",
"constructs": "^2.0.0"
},
"homepage": "https://github.com/aws/aws-cdk",
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"@aws-cdk/cx-api": "0.0.0"
"@aws-cdk/cx-api": "0.0.0",
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
Expand All @@ -98,5 +100,8 @@
"docs-public-apis:@aws-cdk/assets.StagingProps.sourcePath",
"docs-public-apis:@aws-cdk/assets.FollowMode"
]
},
"awscdkio": {
"announce": false
}
}
11 changes: 8 additions & 3 deletions packages/@aws-cdk/aws-accessanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,18 @@
"pkglint": "0.0.0"
},
"dependencies": {
"@aws-cdk/core": "0.0.0"
"@aws-cdk/core": "0.0.0",
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0"
"@aws-cdk/core": "0.0.0",
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
},
"stability": "experimental"
"stability": "experimental",
"awscdkio": {
"announce": false
}
}
11 changes: 8 additions & 3 deletions packages/@aws-cdk/aws-acmpca/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,18 @@
"pkglint": "0.0.0"
},
"dependencies": {
"@aws-cdk/core": "0.0.0"
"@aws-cdk/core": "0.0.0",
"constructs": "^2.0.0"
},
"peerDependencies": {
"@aws-cdk/core": "0.0.0"
"@aws-cdk/core": "0.0.0",
"constructs": "^2.0.0"
},
"engines": {
"node": ">= 10.3.0"
},
"stability": "experimental"
"stability": "experimental",
"awscdkio": {
"announce": false
}
}

0 comments on commit 3f9db92

Please sign in to comment.