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): 1.70.0 #11078

Merged
merged 46 commits into from
Oct 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
5450322
chore(merge-back): 1.69.0 (#10967)
mergify[bot] Oct 20, 2020
6d04fd2
docs(stepfunctions): fix typo in README (#10939)
hilotter Oct 20, 2020
b93cda6
feat(events-targets): add support for Kinesis Firehose as a target (#…
cheruvian Oct 20, 2020
170551e
chore(deps): bump jest from 26.4.2 to 26.6.0 (#10973)
dependabot-preview[bot] Oct 20, 2020
37dc9d8
chore: add 'v2' branch prefix as a mergify conditional (#10956)
Oct 20, 2020
dd81e77
feat(cloudfront): brotli compression support (#10950)
AnderEnder Oct 20, 2020
aa3f3fd
fix(cloudfront): logging bucket uses global domain name (#10945)
njlynch Oct 20, 2020
db84223
chore(redshift): update package stability to experimental (#10983)
njlynch Oct 20, 2020
af45a1f
chore(deps-dev): bump cdk8s from 0.30.0 to 0.32.0 (#10991)
dependabot-preview[bot] Oct 20, 2020
fe6ec39
chore(deps-dev): bump @types/node from 10.17.35 to 10.17.40 (#10980)
dependabot-preview[bot] Oct 20, 2020
585920e
chore(s3): migrate tests to jest (#10934)
Chriscbr Oct 20, 2020
5c030b3
chore(deps-dev): bump parcel from 2.0.0-nightly.425 to 2.0.0-nightly.…
dependabot-preview[bot] Oct 20, 2020
6afaddc
chore(stepfunctions): fix typo in sfn docs (#11000)
skilbjo Oct 21, 2020
da57d61
docs(app-delivery): Fix URL to pipelines readme (#10985)
christophgysin Oct 21, 2020
cc2600f
chore(region-info): eu-south-1 (Milan) ROUTE_53_BUCKET_WEBSITE_ZONE_I…
PatMyron Oct 21, 2020
6956aad
feat(cloudfront-origins): move cloudfront-origins to Developer Previe…
njlynch Oct 21, 2020
191d7b7
fix(lambda-nodejs): docker build is not working (#10885)
ncaq Oct 21, 2020
104af79
chore(deps-dev): bump @types/jest from 26.0.14 to 26.0.15 (#11013)
dependabot-preview[bot] Oct 21, 2020
cc176ac
chore(deps-dev): bump cdk8s-plus from 0.29.0 to 0.33.0 (#11017)
dependabot-preview[bot] Oct 21, 2020
3f668fa
docs(lambda): correct the default value for maxRecordAge in EventSour…
Oct 21, 2020
60f493c
chore(cognito): reorganize identity providers structure so that UserP…
shivlaks Oct 21, 2020
9c88a64
chore(pkglint): don't allow adding peer dependencies to monocdk (#10930)
NetaNir Oct 21, 2020
0abc3b8
chore(deps-dev): bump @types/mock-fs from 4.10.0 to 4.13.0 (#11024)
dependabot-preview[bot] Oct 21, 2020
9e31b02
chore(deps-dev): bump cdk8s from 0.32.0 to 0.33.0 (#11019)
dependabot-preview[bot] Oct 22, 2020
8771b78
chore(deps): bump aws-sdk from 2.764.0 to 2.776.0 (#11027)
dependabot-preview[bot] Oct 22, 2020
c5c96b2
docs(stepfunctions-tasks): fix example code in README (#11028)
doodlesbykumbi Oct 22, 2020
a97b41a
chore(deps-dev): bump parcel from 2.0.0-nightly.426 to 2.0.0-nightly.…
dependabot-preview[bot] Oct 22, 2020
a73a4ee
docs(cognito): fix up code samples so that they compile (#11034)
shivlaks Oct 22, 2020
1bbf1eb
chore(deps-dev): bump sinon from 9.1.0 to 9.2.0 (#11047)
dependabot-preview[bot] Oct 22, 2020
24e98cb
chore(rds): Minor fix for DatabaseInstance and DatabaseCluster exampl…
robertd Oct 22, 2020
fd8bce3
feat(aws-codebuild): add COMMIT_MESSAGE support for webhook FilterGro…
jorge-barreto Oct 23, 2020
bb4d97b
chore(deps-dev): bump @types/node from 10.17.40 to 10.17.42 (#11053)
dependabot-preview[bot] Oct 23, 2020
d22c318
chore(deps-dev): bump fast-check from 2.4.0 to 2.6.0 (#11057)
dependabot-preview[bot] Oct 23, 2020
5db865e
chore(deps): bump proxy-agent from 3.1.1 to 4.0.0 (#11048)
dependabot-preview[bot] Oct 23, 2020
8a0b0a9
chore(apigateway): migrate tests to jest (#11060)
Oct 23, 2020
0537598
feat(apigatewayv2): vpc link and private integrations (#10531)
ayush987goyal Oct 23, 2020
17a87fc
chore(deps): bump jsonschema from 1.2.10 to 1.4.0 (#11069)
dependabot-preview[bot] Oct 23, 2020
0d92242
docs(cognito): README touch-ups (#10993)
shivlaks Oct 23, 2020
5dc1d96
fix(ses-actions): invalid action in policy statement created when usi…
iippis Oct 23, 2020
7435db8
feat(cognito): Cognito User Pools is now in Generally Available (stab…
shivlaks Oct 23, 2020
f4f53a6
feat(lambda-event-sources): disable source mapping (#10927)
wtho Oct 23, 2020
65be3a0
revert: "feat(apigatewayv2): vpc link and private integrations (#1053…
shivlaks Oct 23, 2020
3e33258
chore(release): 1.70.0
Oct 23, 2020
7862de1
fix up CHANGELOG
shivlaks Oct 23, 2020
8ac663b
Update CHANGELOG.md
shivlaks Oct 23, 2020
d48d64d
Update CHANGELOG.md
shivlaks Oct 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pull_request_rules:
commit_message: title+body
conditions:
- base!=release
- -base~=^v2
- -title~=(WIP|wip)
- -label~=(blocked|do-not-merge|no-squash|two-approvers)
- -merged
Expand All @@ -41,6 +42,7 @@ pull_request_rules:
commit_message: title+body
conditions:
- base!=release
- -base~=^v2
- -title~=(WIP|wip)
- label~=two-approvers
- -label~=(blocked|do-not-merge|no-squash)
Expand All @@ -64,6 +66,7 @@ pull_request_rules:
strict_method: merge
commit_message: title+body
conditions:
- -base~=^v2
- -title~=(WIP|wip)
- -label~=(blocked|do-not-merge)
# Only if no-squash is set
Expand Down Expand Up @@ -129,6 +132,7 @@ pull_request_rules:
strict_method: merge
commit_message: title+body
conditions:
- base=v2-main
- label~=forward-merge
- -label~=(blocked|do-not-merge)
- -merged
Expand Down
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@

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.70.0](https://github.com/aws/aws-cdk/compare/v1.69.0...v1.70.0) (2020-10-23)


### ⚠ BREAKING CHANGES TO EXPERIMENTAL FEATURES

* **cognito:** the `UserPoolIdentityProviderBase` abstract class has been removed. Use the `UserPoolIdentityProvider*` classes directly.

### Features

* **cloudfront:** brotli compression support ([#10950](https://github.com/aws/aws-cdk/issues/10950)) ([dd81e77](https://github.com/aws/aws-cdk/commit/dd81e77e6ad606c2e76e01de1c7d38b762357d26)), closes [#10947](https://github.com/aws/aws-cdk/issues/10947)
* **cloudfront-origins:** move cloudfront-origins to Developer Preview ([#11005](https://github.com/aws/aws-cdk/issues/11005)) ([6956aad](https://github.com/aws/aws-cdk/commit/6956aadd6043499d8d55ca2d1a8ee65a91ac1bc6)), closes [#10831](https://github.com/aws/aws-cdk/issues/10831)
* **codebuild:** add COMMIT_MESSAGE support for webhook FilterGroup ([#11011](https://github.com/aws/aws-cdk/issues/11011)) ([fd8bce3](https://github.com/aws/aws-cdk/commit/fd8bce3d1409fd66877ca7530f8e74d9d78e0b8a)), closes [#9033](https://github.com/aws/aws-cdk/issues/9033)
* **cognito:** Cognito User Pools is now in Generally Available (stable) ([#11003](https://github.com/aws/aws-cdk/issues/11003)) ([7435db8](https://github.com/aws/aws-cdk/commit/7435db853636628a60c8aa465481fc01136aa4a1))
* **events-targets:** add support for Kinesis Firehose as a target ([#10400](https://github.com/aws/aws-cdk/issues/10400)) ([b93cda6](https://github.com/aws/aws-cdk/commit/b93cda6f528e0e1d98b88ad8407620b8ef472125)), closes [#10349](https://github.com/aws/aws-cdk/issues/10349)
* **lambda-event-sources:** disable source mapping ([#10927](https://github.com/aws/aws-cdk/issues/10927)) ([f4f53a6](https://github.com/aws/aws-cdk/commit/f4f53a65e55d895338aecf8cb63637c6d265b929)), closes [#5750](https://github.com/aws/aws-cdk/issues/5750)


### Bug Fixes

* **cloudfront:** logging bucket uses global domain name ([#10945](https://github.com/aws/aws-cdk/issues/10945)) ([aa3f3fd](https://github.com/aws/aws-cdk/commit/aa3f3fdc92545157205e533e124412d0db08c575)), closes [#10923](https://github.com/aws/aws-cdk/issues/10923)
* **lambda-nodejs:** docker build is not working ([#10885](https://github.com/aws/aws-cdk/issues/10885)) ([191d7b7](https://github.com/aws/aws-cdk/commit/191d7b7706282812878e1aeed79d8f4b39d1f797)), closes [#10881](https://github.com/aws/aws-cdk/issues/10881)
* **ses-actions:** invalid action in policy statement created when using SES S3 action ([#11061](https://github.com/aws/aws-cdk/issues/11061)) ([5dc1d96](https://github.com/aws/aws-cdk/commit/5dc1d96e77ec2359a77aed7266c4e7769d04e084))
* **cognito:** reorganize identity providers structure so that UserPoolIdentityProviderBase is not exported ([#10925](https://github.com/aws/aws-cdk/issues/10925)) ([60f493c](https://github.com/aws/aws-cdk/commit/60f493c9a606162816c14149ea578341ea458a05))

## [1.69.0](https://github.com/aws/aws-cdk/compare/v1.68.0...v1.69.0) (2020-10-19)


Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"tools/*"
],
"rejectCycles": "true",
"version": "1.69.0"
"version": "1.70.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"cdk-build-tools": "0.0.0",
"cdk-integ-tools": "0.0.0",
"cfn2ts": "0.0.0",
"jest": "^25.5.4",
"jest": "^26.6.0",
"nodeunit": "^0.11.3",
"pkglint": "0.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/app-delivery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This module is part of the [AWS Cloud Development Kit](https://github.com/aws/aw
# Replacement recommended

This library has been deprecated. We recommend you use the
[@aws-cdk/pipelines](https://docs.aws.amazon.com/cdk/api/latest/docs/pipelines.html) module instead.
[@aws-cdk/pipelines](https://docs.aws.amazon.com/cdk/api/latest/docs/pipelines-readme.html) module instead.


### Limitations
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/app-delivery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@types/nodeunit": "^0.0.31",
"cdk-build-tools": "0.0.0",
"cdk-integ-tools": "0.0.0",
"fast-check": "^2.4.0",
"fast-check": "^2.6.0",
"nodeunit": "^0.11.3",
"pkglint": "0.0.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/@aws-cdk/assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
},
"license": "Apache-2.0",
"devDependencies": {
"@types/jest": "^26.0.14",
"@types/jest": "^26.0.15",
"cdk-build-tools": "0.0.0",
"jest": "^26.4.2",
"jest": "^26.6.0",
"pkglint": "0.0.0",
"ts-jest": "^26.4.1"
},
Expand All @@ -37,7 +37,7 @@
"peerDependencies": {
"@aws-cdk/core": "0.0.0",
"constructs": "^3.0.4",
"jest": "^26.4.2"
"jest": "^26.6.0"
},
"repository": {
"url": "https://github.com/aws/aws-cdk.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"cdk-integ-tools": "0.0.0",
"nodeunit": "^0.11.3",
"pkglint": "0.0.0",
"sinon": "^9.1.0",
"sinon": "^9.2.0",
"ts-mock-imports": "^1.3.0"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-apigateway/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ nyc.config.js
.LAST_PACKAGE
*.snk
!.eslintrc.js
!jest.config.js

junit.xml
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-apigateway/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dist

tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
Expand Down
10 changes: 10 additions & 0 deletions packages/@aws-cdk/aws-apigateway/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const baseConfig = require('cdk-build-tools/config/jest.config');
module.exports = {
...baseConfig,
coverageThreshold: {
global: {
branches: 80,
statements: 60,
},
},
};
5 changes: 2 additions & 3 deletions packages/@aws-cdk/aws-apigateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"cloudformation": "AWS::ApiGateway",
"env": {
"AWSLINT_BASE_CONSTRUCT": true
}
},
"jest": true
},
"keywords": [
"aws",
Expand All @@ -72,11 +73,9 @@
"license": "Apache-2.0",
"devDependencies": {
"@aws-cdk/assert": "0.0.0",
"@types/nodeunit": "^0.0.31",
"cdk-build-tools": "0.0.0",
"cdk-integ-tools": "0.0.0",
"cfn2ts": "0.0.0",
"nodeunit": "^0.11.3",
"pkglint": "0.0.0"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import { Test } from 'nodeunit';
import '@aws-cdk/assert/jest';
import * as apigateway from '../lib';

export = {
'if jsonWithStandardFields method called with no parameter'(test: Test) {
describe('access log', () => {
test('if jsonWithStandardFields method called with no parameter', () => {
const testFormat = apigateway.AccessLogFormat.jsonWithStandardFields();
test.deepEqual(testFormat.toString(), '{"requestId":"$context.requestId","ip":"$context.identity.sourceIp","user":"$context.identity.user","caller":"$context.identity.caller","requestTime":"$context.requestTime","httpMethod":"$context.httpMethod","resourcePath":"$context.resourcePath","status":"$context.status","protocol":"$context.protocol","responseLength":"$context.responseLength"}');
expect(testFormat.toString()).toEqual('{"requestId":"$context.requestId","ip":"$context.identity.sourceIp","user":"$context.identity.user","caller":"$context.identity.caller","requestTime":"$context.requestTime","httpMethod":"$context.httpMethod","resourcePath":"$context.resourcePath","status":"$context.status","protocol":"$context.protocol","responseLength":"$context.responseLength"}');
});

test.done();
},

'if jsonWithStandardFields method called with all parameters false'(test: Test) {
test('if jsonWithStandardFields method called with all parameters false', () => {
const testFormat = apigateway.AccessLogFormat.jsonWithStandardFields({
caller: false,
httpMethod: false,
Expand All @@ -21,19 +19,15 @@ export = {
status: false,
user: false,
});
test.deepEqual(testFormat.toString(), '{"requestId":"$context.requestId"}');

test.done();
},
expect(testFormat.toString()).toEqual('{"requestId":"$context.requestId"}');
});

'if clf method called'(test: Test) {
test('if clf method called', () => {
const testFormat = apigateway.AccessLogFormat.clf();
test.deepEqual(testFormat.toString(), '$context.identity.sourceIp $context.identity.caller $context.identity.user [$context.requestTime] "$context.httpMethod $context.resourcePath $context.protocol" $context.status $context.responseLength $context.requestId');
expect(testFormat.toString()).toEqual('$context.identity.sourceIp $context.identity.caller $context.identity.user [$context.requestTime] "$context.httpMethod $context.resourcePath $context.protocol" $context.status $context.responseLength $context.requestId');
});

test.done();
},

'if custom method called'(test: Test) {
test('if custom method called', () => {
const testFormat = apigateway.AccessLogFormat.custom(JSON.stringify({
requestId: apigateway.AccessLogField.contextRequestId(),
sourceIp: apigateway.AccessLogField.contextIdentitySourceIp(),
Expand All @@ -44,8 +38,6 @@ export = {
email: apigateway.AccessLogField.contextAuthorizerClaims('email'),
},
}));
test.deepEqual(testFormat.toString(), '{"requestId":"$context.requestId","sourceIp":"$context.identity.sourceIp","method":"$context.httpMethod","accountId":"$context.identity.accountId","userContext":{"sub":"$context.authorizer.claims.sub","email":"$context.authorizer.claims.email"}}');

test.done();
},
};
expect(testFormat.toString()).toEqual('{"requestId":"$context.requestId","sourceIp":"$context.identity.sourceIp","method":"$context.httpMethod","accountId":"$context.identity.accountId","userContext":{"sub":"$context.authorizer.claims.sub","email":"$context.authorizer.claims.email"}}');
});
});
Original file line number Diff line number Diff line change
@@ -1,59 +1,56 @@
import '@aws-cdk/assert/jest';
import * as path from 'path';
import * as s3 from '@aws-cdk/aws-s3';
import * as cdk from '@aws-cdk/core';
import { Test } from 'nodeunit';
import * as apigw from '../lib';

export = {
'apigateway.ApiDefinition.fromJson': {
'happy case'(test: Test) {
describe('api definition', () => {
describe('apigateway.ApiDefinition.fromJson', () => {
test('happy case', () => {
const stack = new cdk.Stack();
const definition = {
key1: 'val1',
};
const config = apigw.ApiDefinition.fromInline(definition).bind(stack);
test.deepEqual(config.inlineDefinition, definition);
test.ok(config.s3Location === undefined);
test.done();
},

'fails if Json definition is empty'(test: Test) {
test.throws(
() => defineRestApi(apigw.ApiDefinition.fromInline({})),
/cannot be empty/);
test.done();
},

'fails if definition is not an object'(test: Test) {
test.throws(
() => defineRestApi(apigw.ApiDefinition.fromInline('not-json')),
/should be of type object/);
test.done();
},
},

'apigateway.ApiDefinition.fromAsset': {
'happy case'(test: Test) {
expect(config.inlineDefinition).toEqual(definition);
expect(config.s3Location).toBeUndefined();
});

test('fails if Json definition is empty', () => {
expect(
() => defineRestApi(apigw.ApiDefinition.fromInline({})))
.toThrow(/cannot be empty/);
});

test('fails if definition is not an object', () => {
expect(
() => defineRestApi(apigw.ApiDefinition.fromInline('not-json')))
.toThrow(/should be of type object/);
});
});

describe('apigateway.ApiDefinition.fromAsset', () => {
test('happy case', () => {
const stack = new cdk.Stack();
const config = apigw.ApiDefinition.fromAsset(path.join(__dirname, 'sample-definition.yaml')).bind(stack);
test.ok(config.inlineDefinition === undefined);
test.ok(config.s3Location !== undefined);
test.deepEqual(stack.resolve(config.s3Location!.bucket), {
expect(config.inlineDefinition).toBeUndefined();
expect(config.s3Location).toBeDefined();
expect(stack.resolve(config.s3Location!.bucket)).toEqual({
Ref: 'AssetParameters68497ac876de4e963fc8f7b5f1b28844c18ecc95e3f7c6e9e0bf250e03c037fbS3Bucket42039E29',
});
test.done();
},

'fails if a directory is given for an asset'(test: Test) {
});

test('fails if a directory is given for an asset', () => {
// GIVEN
const fileAsset = apigw.ApiDefinition.fromAsset(path.join(__dirname, 'authorizers'));

// THEN
test.throws(() => defineRestApi(fileAsset), /Asset cannot be a \.zip file or a directory/);
test.done();
},
expect(() => defineRestApi(fileAsset)).toThrow(/Asset cannot be a \.zip file or a directory/);

'only one Asset object gets created even if multiple functions use the same AssetApiDefinition'(test: Test) {
});

test('only one Asset object gets created even if multiple functions use the same AssetApiDefinition', () => {
// GIVEN
const app = new cdk.App();
const stack = new cdk.Stack(app, 'MyStack');
Expand All @@ -73,26 +70,26 @@ export = {
const synthesized = assembly.stacks[0];

// API1 has an asset, API2 does not
test.deepEqual(synthesized.assets.length, 1);
test.done();
},
},
expect(synthesized.assets.length).toEqual(1);

});
});

'apigateway.ApiDefinition.fromBucket': {
'happy case'(test: Test) {
describe('apigateway.ApiDefinition.fromBucket', () => {
test('happy case', () => {
const stack = new cdk.Stack();
const bucket = new s3.Bucket(stack, 'my-bucket');
const config = apigw.ApiDefinition.fromBucket(bucket, 'my-key', 'my-version').bind(stack);
test.ok(config.inlineDefinition === undefined);
test.ok(config.s3Location !== undefined);
test.deepEqual(stack.resolve(config.s3Location!.bucket), {
expect(config.inlineDefinition).toBeUndefined();
expect(config.s3Location).toBeDefined();
expect(stack.resolve(config.s3Location!.bucket)).toEqual({
Ref: 'mybucket15D133BF',
});
test.equals(config.s3Location!.key, 'my-key');
test.done();
},
},
};
expect(config.s3Location!.key).toEqual('my-key');

});
});
});

function defineRestApi(definition: apigw.ApiDefinition) {
const stack = new cdk.Stack();
Expand Down
Loading