diff --git a/CHANGELOG.md b/CHANGELOG.md index d401046ab..cf60e14ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.64.1] - 2020-09-26 + +### Changed +- Upgraded all patterns to CDK v1.64.1 +- Fix for *-S3-* patterns breaking when bucket versioning is turned off ([#80](https://github.com/awslabs/aws-solutions-constructs/issues/80)) + ## [1.64.0] - 2020-09-24 ### Changed diff --git a/source/lerna.json b/source/lerna.json index b80ea6f62..fb6792fab 100644 --- a/source/lerna.json +++ b/source/lerna.json @@ -6,5 +6,5 @@ "./patterns/@aws-solutions-constructs/*" ], "rejectCycles": "true", - "version": "1.64.0" + "version": "1.64.1" } diff --git a/source/package.json b/source/package.json index 6fbc0ac59..b1796a3b9 100644 --- a/source/package.json +++ b/source/package.json @@ -1,6 +1,6 @@ { "name": "aws-solutions-constructs", - "version": "1.64.0", + "version": "1.64.1", "description": "AWS Solutions Constructs Library", "repository": { "type": "git", diff --git a/source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/package.json b/source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/package.json index d52c38400..6147a41c1 100644 --- a/source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-apigateway-dynamodb", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS API Gateway and Amazon DynamoDB integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.0" + "@aws-cdk/aws-logs": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/package.json b/source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/package.json index bca4ae1b5..8c7a8acc4 100644 --- a/source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-apigateway-kinesisstreams", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS API Gateway and Amazon Kinesis Data Streams integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kinesis": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kinesis": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kinesis": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kinesis": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.0" + "@aws-cdk/aws-logs": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/package.json index 5da2e5bb1..4971baa60 100644 --- a/source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-apigateway-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-apigateway-lambda", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK constructs for defining an interaction between an API Gateway and a Lambda function.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-iam": "~1.64.0" + "@aws-cdk/aws-iam": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-apigateway-sqs/package.json b/source/patterns/@aws-solutions-constructs/aws-apigateway-sqs/package.json index b9b70683c..cbec59d60 100644 --- a/source/patterns/@aws-solutions-constructs/aws-apigateway-sqs/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-apigateway-sqs/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-apigateway-sqs", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK constructs for defining an interaction between an AWS Lambda function and an Amazon S3 bucket.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.0" + "@aws-cdk/aws-logs": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/package.json index 5eb8bcedf..47f734223 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-cloudfront-apigateway-lambda", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS Cloudfront to AWS API Gateway to AWS Lambda integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,19 +53,19 @@ } }, "dependencies": { - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-cloudfront": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-solutions-constructs/aws-cloudfront-apigateway": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-cloudfront": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-solutions-constructs/aws-cloudfront-apigateway": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -75,15 +75,15 @@ ] }, "peerDependencies": { - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-cloudfront": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-solutions-constructs/aws-cloudfront-apigateway": "~1.64.0", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-cloudfront": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-solutions-constructs/aws-cloudfront-apigateway": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0" + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/package.json b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/package.json index c74d56167..77e3152b0 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-apigateway/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-cloudfront-apigateway", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS Cloudfront to AWS API Gateway integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-cloudfront": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-cloudfront": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-cloudfront": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-cloudfront": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-s3": "~1.64.0" + "@aws-cdk/aws-s3": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/package.json b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/package.json index 9e04023b0..f9975d1cc 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-cloudfront-s3/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-cloudfront-s3", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS Cloudfront to AWS S3 integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,15 +53,15 @@ } }, "dependencies": { - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-cloudfront": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-cloudfront": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -71,11 +71,11 @@ ] }, "peerDependencies": { - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-cloudfront": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-cloudfront": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-lambda": "~1.64.0" + "@aws-cdk/aws-lambda": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/package.json index 96bd3489f..73f1bcdf9 100644 --- a/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-cognito-apigateway-lambda", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS Cognito to AWS API Gateway to AWS Lambda integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-cognito": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-cognito": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-cognito": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-cognito": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0" + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda-elasticsearch-kibana/package.json b/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda-elasticsearch-kibana/package.json index 289b04ba3..b0e5887ad 100644 --- a/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda-elasticsearch-kibana/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda-elasticsearch-kibana/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-dynamodb-stream-lambda-elasticsearch-kibana", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for Amazon Dynamodb stream to AWS Lambda to AWS Elasticsearch with Kibana integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,21 +53,21 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-cognito": "~1.64.0", - "@aws-cdk/aws-elasticsearch": "~1.64.0", - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-cdk/aws-cloudwatch": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-solutions-constructs/aws-dynamodb-stream-lambda": "~1.64.0", - "@aws-solutions-constructs/aws-lambda-elasticsearch-kibana": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-cognito": "~1.64.1", + "@aws-cdk/aws-elasticsearch": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-cdk/aws-cloudwatch": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-dynamodb-stream-lambda": "~1.64.1", + "@aws-solutions-constructs/aws-lambda-elasticsearch-kibana": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -77,17 +77,17 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-cognito": "~1.64.0", - "@aws-cdk/aws-elasticsearch": "~1.64.0", - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-cdk/aws-cloudwatch": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-solutions-constructs/aws-dynamodb-stream-lambda": "~1.64.0", - "@aws-solutions-constructs/aws-lambda-elasticsearch-kibana": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-cognito": "~1.64.1", + "@aws-cdk/aws-elasticsearch": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-cdk/aws-cloudwatch": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-dynamodb-stream-lambda": "~1.64.1", + "@aws-solutions-constructs/aws-lambda-elasticsearch-kibana": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-iam": "~1.64.0" + "@aws-cdk/aws-iam": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda/package.json index 1c3a4e63a..bc1671600 100644 --- a/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-dynamodb-stream-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-dynamodb-stream-lambda", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS DynamoDB Stream to AWS Lambda integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-iam": "~1.64.0" + "@aws-cdk/aws-iam": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-events-rule-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-events-rule-lambda/package.json index f5cddc918..167749876 100644 --- a/source/patterns/@aws-solutions-constructs/aws-events-rule-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-events-rule-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-events-rule-lambda", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for deploying AWS Events Rule that inveokes AWS Lambda", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,15 +53,15 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-events": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-events": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -71,11 +71,11 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-events": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-events": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-events-rule-sns/package.json b/source/patterns/@aws-solutions-constructs/aws-events-rule-sns/package.json index 47af91e02..42f8a4996 100644 --- a/source/patterns/@aws-solutions-constructs/aws-events-rule-sns/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-events-rule-sns/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-events-rule-sns", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for deploying AWS Events Rule that invokes AWS SNS", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-events": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-sns": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-events": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-sns": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-sns": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-events": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-sns": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-events": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-events-rule-sqs/package.json b/source/patterns/@aws-solutions-constructs/aws-events-rule-sqs/package.json index 051657835..6e70f94bb 100644 --- a/source/patterns/@aws-solutions-constructs/aws-events-rule-sqs/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-events-rule-sqs/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-events-rule-sqs", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for deploying AWS Events Rule that invokes AWS SQS", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-events": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-events": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-events": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-events": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-events-rule-step-function/package.json b/source/patterns/@aws-solutions-constructs/aws-events-rule-step-function/package.json index 332e8f353..d36a17904 100644 --- a/source/patterns/@aws-solutions-constructs/aws-events-rule-step-function/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-events-rule-step-function/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-events-rule-step-function", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for deploying AWS Events Rule that invokes AWS Step Function", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,19 +53,19 @@ } }, "dependencies": { - "@aws-cdk/aws-stepfunctions": "~1.64.0", - "@aws-cdk/aws-stepfunctions-tasks": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-events": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-cdk/aws-cloudwatch": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-stepfunctions": "~1.64.1", + "@aws-cdk/aws-stepfunctions-tasks": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-events": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/aws-cloudwatch": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -75,15 +75,15 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-stepfunctions": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-events": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-stepfunctions": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-events": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-cloudwatch": "~1.64.0", - "@aws-cdk/aws-stepfunctions-tasks": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0" + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-cloudwatch": "~1.64.1", + "@aws-cdk/aws-stepfunctions-tasks": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-iot-kinesisfirehose-s3/package.json b/source/patterns/@aws-solutions-constructs/aws-iot-kinesisfirehose-s3/package.json index 72043f188..9ec1d8261 100644 --- a/source/patterns/@aws-solutions-constructs/aws-iot-kinesisfirehose-s3/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-iot-kinesisfirehose-s3/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-iot-kinesisfirehose-s3", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS IoT to AWS Kinesis Firehose to AWS S3 integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,18 +53,18 @@ } }, "dependencies": { - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kinesisfirehose": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-iot": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.64.0", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kinesisfirehose": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-iot": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -74,14 +74,14 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kinesisfirehose": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-iot": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.64.0", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kinesisfirehose": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-iot": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.0" + "@aws-cdk/aws-logs": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-iot-lambda-dynamodb/package.json b/source/patterns/@aws-solutions-constructs/aws-iot-lambda-dynamodb/package.json index d92700811..1c65e21c5 100644 --- a/source/patterns/@aws-solutions-constructs/aws-iot-lambda-dynamodb/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-iot-lambda-dynamodb/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-iot-lambda-dynamodb", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS IoT to AWS Lambda to AWS DyanmoDB integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-iot": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-solutions-constructs/aws-iot-lambda": "~1.64.0", - "@aws-solutions-constructs/aws-lambda-dynamodb": "~1.64.0", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-iot": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-iot-lambda": "~1.64.1", + "@aws-solutions-constructs/aws-lambda-dynamodb": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-iot": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-solutions-constructs/aws-iot-lambda": "~1.64.0", - "@aws-solutions-constructs/aws-lambda-dynamodb": "~1.64.0", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-iot": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-iot-lambda": "~1.64.1", + "@aws-solutions-constructs/aws-lambda-dynamodb": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-iot-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-iot-lambda/package.json index 53d075cab..f3c952e64 100644 --- a/source/patterns/@aws-solutions-constructs/aws-iot-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-iot-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-iot-lambda", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS IoT to AWS Lambda integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,15 +53,15 @@ } }, "dependencies": { - "@aws-cdk/aws-iot": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-iot": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -71,11 +71,11 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-iot": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", + "@aws-cdk/aws-iot": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3-and-kinesisanalytics/package.json b/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3-and-kinesisanalytics/package.json index 8a60c7592..5fb70d1dc 100644 --- a/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3-and-kinesisanalytics/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3-and-kinesisanalytics/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-kinesisfirehose-s3-and-kinesisanalytics", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK constructs for defining an interaction between an Amazon Kinesis Data Firehose delivery stream and (1) an Amazon S3 bucket, and (2) an Amazon Kinesis Data Analytics application.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,19 +53,19 @@ } }, "dependencies": { - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kinesis": "~1.64.0", - "@aws-cdk/aws-kinesisanalytics": "~1.64.0", - "@aws-cdk/aws-kinesisfirehose": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.64.0", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kinesis": "~1.64.1", + "@aws-cdk/aws-kinesisanalytics": "~1.64.1", + "@aws-cdk/aws-kinesisfirehose": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -75,15 +75,15 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kinesis": "~1.64.0", - "@aws-cdk/aws-kinesisanalytics": "~1.64.0", - "@aws-cdk/aws-kinesisfirehose": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.64.0", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kinesis": "~1.64.1", + "@aws-cdk/aws-kinesisanalytics": "~1.64.1", + "@aws-cdk/aws-kinesisfirehose": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-kinesisfirehose-s3": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.0" + "@aws-cdk/aws-logs": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/package.json b/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/package.json index 6bd9c5f31..4deb368c8 100644 --- a/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-kinesisfirehose-s3", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK constructs for defining an interaction between an Amazon Kinesis Data Firehose delivery stream and an Amazon S3 bucket.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kinesisfirehose": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kinesisfirehose": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kinesisfirehose": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kinesisfirehose": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-kinesisstreams-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-kinesisstreams-lambda/package.json index 6d664cc3c..1d3592c5e 100644 --- a/source/patterns/@aws-solutions-constructs/aws-kinesisstreams-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-kinesisstreams-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-kinesisstreams-lambda", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK constructs for defining an interaction between an Amazon Kinesis Data Stream and an AWS Lambda function.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kinesis": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kinesis": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kinesis": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kinesis": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-dynamodb/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-dynamodb/package.json index cf40452c8..a5b9ed2e1 100644 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-dynamodb/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-dynamodb/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-dynamodb", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS Lambda to AWS DynamoDB integration.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,14 +53,14 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -70,10 +70,10 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-elasticsearch-kibana/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-elasticsearch-kibana/package.json index e6f9e2079..d9a91e2a3 100644 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-elasticsearch-kibana/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-elasticsearch-kibana/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-elasticsearch-kibana", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS Lambda to AWS Elasticsearch with Kibana integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-cognito": "~1.64.0", - "@aws-cdk/aws-elasticsearch": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-cloudwatch": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-cognito": "~1.64.1", + "@aws-cdk/aws-elasticsearch": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-cloudwatch": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-cognito": "~1.64.0", - "@aws-cdk/aws-elasticsearch": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-cloudwatch": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-cognito": "~1.64.1", + "@aws-cdk/aws-elasticsearch": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-cloudwatch": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-s3/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-s3/package.json index 4bc8c08fa..403f05a62 100644 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-s3/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-s3/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-s3", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK constructs for defining an interaction between an AWS Lambda function and an Amazon S3 bucket.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,14 +53,14 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -70,10 +70,10 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-sns/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-sns/package.json index a124bd7e9..2b76ba4cb 100644 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-sns/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-sns/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-sns", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK constructs for defining an interaction between an AWS Lambda function and an Amazon SNS topic.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,15 +53,15 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-sns": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-sns": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -71,11 +71,11 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-sns": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-sns": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-sqs-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-sqs-lambda/package.json index 1425fb763..b410d7a65 100755 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-sqs-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-sqs-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-sqs-lambda", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK construct that provisions (1) an AWS Lambda function that is configured to send messages to a queue; (2) an Amazon SQS queue; and (3) an AWS Lambda function configured to consume messages from the queue.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-solutions-constructs/aws-lambda-sqs": "~1.64.0", - "@aws-solutions-constructs/aws-sqs-lambda": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-lambda-sqs": "~1.64.1", + "@aws-solutions-constructs/aws-sqs-lambda": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-solutions-constructs/aws-lambda-sqs": "~1.64.0", - "@aws-solutions-constructs/aws-sqs-lambda": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-lambda-sqs": "~1.64.1", + "@aws-solutions-constructs/aws-sqs-lambda": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-sqs/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-sqs/package.json index a6b5d9a1a..c71eb3a39 100755 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-sqs/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-sqs/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-sqs", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK constructs for defining an interaction between an AWS Lambda function and an Amazon SQS queue.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,14 +53,14 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -70,10 +70,10 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-lambda-step-function/package.json b/source/patterns/@aws-solutions-constructs/aws-lambda-step-function/package.json index 9d0bcdc7e..fbf898cd4 100644 --- a/source/patterns/@aws-solutions-constructs/aws-lambda-step-function/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-lambda-step-function/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-lambda-step-function", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK constructs for defining an interaction between an AWS Lambda function and an AWS Step Function.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-cloudwatch": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-stepfunctions": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-cloudwatch": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-stepfunctions": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0", "eslint-plugin-import": "^2.22.0" @@ -73,12 +73,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-cloudwatch": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-stepfunctions": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-cloudwatch": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-stepfunctions": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.0" + "@aws-cdk/aws-logs": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-s3-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-s3-lambda/package.json index c77772866..a7a97ac09 100644 --- a/source/patterns/@aws-solutions-constructs/aws-s3-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-s3-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-s3-lambda", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS S3 to AWS Lambda integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/aws-s3-notifications": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/aws-s3-notifications": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", - "@aws-cdk/aws-s3-notifications": "~1.64.0", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/aws-s3-notifications": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-s3-lambda/test/__snapshots__/s3-lambda.test.js.snap b/source/patterns/@aws-solutions-constructs/aws-s3-lambda/test/__snapshots__/s3-lambda.test.js.snap index 2c45c7e8a..9fc3ca960 100644 --- a/source/patterns/@aws-solutions-constructs/aws-s3-lambda/test/__snapshots__/s3-lambda.test.js.snap +++ b/source/patterns/@aws-solutions-constructs/aws-s3-lambda/test/__snapshots__/s3-lambda.test.js.snap @@ -546,3 +546,534 @@ Object { }, } `; + +exports[`snapshot test S3ToLambda with versioning turned off 1`] = ` +Object { + "Parameters": Object { + "AssetParameters0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8ArtifactHash8D9AD644": Object { + "Description": "Artifact hash for asset \\"0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8\\"", + "Type": "String", + }, + "AssetParameters0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8S3Bucket9E1964CB": Object { + "Description": "S3 bucket for asset \\"0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8\\"", + "Type": "String", + }, + "AssetParameters0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8S3VersionKey7153CEE7": Object { + "Description": "S3 key for asset version \\"0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8\\"", + "Type": "String", + }, + }, + "Resources": Object { + "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691": Object { + "DependsOn": Array [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", + ], + "Metadata": Object { + "cfn_nag": Object { + "rules_to_suppress": Array [ + Object { + "id": "W58", + "reason": "Lambda function has permission to write CloudWatch Logs via AWSLambdaBasicExecutionRole policy attached to the lambda role", + }, + ], + }, + }, + "Properties": Object { + "Code": Object { + "ZipFile": "exports.handler = (event, context) => { + // eslint-disable-next-line @typescript-eslint/no-require-imports, import/no-extraneous-dependencies + const s3 = new (require('aws-sdk').S3)(); + // eslint-disable-next-line @typescript-eslint/no-require-imports + const https = require('https'); + // eslint-disable-next-line @typescript-eslint/no-require-imports + const url = require('url'); + log(JSON.stringify(event, undefined, 2)); + const props = event.ResourceProperties; + if (event.RequestType === 'Delete') { + props.NotificationConfiguration = {}; // this is how you clean out notifications + } + const req = { + Bucket: props.BucketName, + NotificationConfiguration: props.NotificationConfiguration, + }; + return s3.putBucketNotificationConfiguration(req, (err, data) => { + log({ err, data }); + if (err) { + return submitResponse('FAILED', err.message + \`\\\\nMore information in CloudWatch Log Stream: \${context.logStreamName}\`); + } + else { + return submitResponse('SUCCESS'); + } + }); + function log(obj) { + console.error(event.RequestId, event.StackId, event.LogicalResourceId, obj); + } + // eslint-disable-next-line max-len + // adapted from https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-code.html#cfn-lambda-function-code-cfnresponsemodule + // to allow sending an error messge as a reason. + function submitResponse(responseStatus, reason) { + const responseBody = JSON.stringify({ + Status: responseStatus, + Reason: reason || 'See the details in CloudWatch Log Stream: ' + context.logStreamName, + PhysicalResourceId: event.PhysicalResourceId || event.LogicalResourceId, + StackId: event.StackId, + RequestId: event.RequestId, + LogicalResourceId: event.LogicalResourceId, + NoEcho: false, + }); + log({ responseBody }); + const parsedUrl = url.parse(event.ResponseURL); + const options = { + hostname: parsedUrl.hostname, + port: 443, + path: parsedUrl.path, + method: 'PUT', + headers: { + 'content-type': '', + 'content-length': responseBody.length, + }, + }; + const request = https.request(options, (r) => { + log({ statusCode: r.statusCode, statusMessage: r.statusMessage }); + context.done(); + }); + request.on('error', (error) => { + log({ sendError: error }); + context.done(); + }); + request.write(responseBody); + request.end(); + } +};", + }, + "Description": "AWS CloudFormation handler for \\"Custom::S3BucketNotifications\\" resources (@aws-cdk/aws-s3)", + "Handler": "index.handler", + "Role": Object { + "Fn::GetAtt": Array [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", + "Arn", + ], + }, + "Runtime": "nodejs10.x", + "Timeout": 300, + }, + "Type": "AWS::Lambda::Function", + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC": Object { + "Properties": Object { + "AssumeRolePolicyDocument": Object { + "Statement": Array [ + Object { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": Object { + "Service": "lambda.amazonaws.com", + }, + }, + ], + "Version": "2012-10-17", + }, + "ManagedPolicyArns": Array [ + Object { + "Fn::Join": Array [ + "", + Array [ + "arn:", + Object { + "Ref": "AWS::Partition", + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole", + ], + ], + }, + ], + }, + "Type": "AWS::IAM::Role", + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36": Object { + "Metadata": Object { + "cfn_nag": Object { + "rules_to_suppress": Array [ + Object { + "id": "W12", + "reason": "Bucket resource is '*' due to circular dependency with bucket and role creation at the same time", + }, + ], + }, + }, + "Properties": Object { + "PolicyDocument": Object { + "Statement": Array [ + Object { + "Action": "s3:PutBucketNotification", + "Effect": "Allow", + "Resource": "*", + }, + ], + "Version": "2012-10-17", + }, + "PolicyName": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", + "Roles": Array [ + Object { + "Ref": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", + }, + ], + }, + "Type": "AWS::IAM::Policy", + }, + "tests3lambdaLambdaFunctionB56B7023": Object { + "DependsOn": Array [ + "tests3lambdaLambdaFunctionServiceRoleDefaultPolicyA7E71BD5", + "tests3lambdaLambdaFunctionServiceRoleA74F4427", + ], + "Metadata": Object { + "cfn_nag": Object { + "rules_to_suppress": Array [ + Object { + "id": "W58", + "reason": "Lambda functions has the required permission to write CloudWatch Logs. It uses custom policy instead of arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole with more tighter permissions.", + }, + ], + }, + }, + "Properties": Object { + "Code": Object { + "S3Bucket": Object { + "Ref": "AssetParameters0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8S3Bucket9E1964CB", + }, + "S3Key": Object { + "Fn::Join": Array [ + "", + Array [ + Object { + "Fn::Select": Array [ + 0, + Object { + "Fn::Split": Array [ + "||", + Object { + "Ref": "AssetParameters0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8S3VersionKey7153CEE7", + }, + ], + }, + ], + }, + Object { + "Fn::Select": Array [ + 1, + Object { + "Fn::Split": Array [ + "||", + Object { + "Ref": "AssetParameters0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8S3VersionKey7153CEE7", + }, + ], + }, + ], + }, + ], + ], + }, + }, + "Environment": Object { + "Variables": Object { + "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1", + }, + }, + "Handler": "index.handler", + "Role": Object { + "Fn::GetAtt": Array [ + "tests3lambdaLambdaFunctionServiceRoleA74F4427", + "Arn", + ], + }, + "Runtime": "nodejs12.x", + "TracingConfig": Object { + "Mode": "Active", + }, + }, + "Type": "AWS::Lambda::Function", + }, + "tests3lambdaLambdaFunctionServiceRoleA74F4427": Object { + "Properties": Object { + "AssumeRolePolicyDocument": Object { + "Statement": Array [ + Object { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": Object { + "Service": "lambda.amazonaws.com", + }, + }, + ], + "Version": "2012-10-17", + }, + "Policies": Array [ + Object { + "PolicyDocument": Object { + "Statement": Array [ + Object { + "Action": Array [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents", + ], + "Effect": "Allow", + "Resource": Object { + "Fn::Join": Array [ + "", + Array [ + "arn:", + Object { + "Ref": "AWS::Partition", + }, + ":logs:", + Object { + "Ref": "AWS::Region", + }, + ":", + Object { + "Ref": "AWS::AccountId", + }, + ":log-group:/aws/lambda/*", + ], + ], + }, + }, + ], + "Version": "2012-10-17", + }, + "PolicyName": "LambdaFunctionServiceRolePolicy", + }, + ], + }, + "Type": "AWS::IAM::Role", + }, + "tests3lambdaLambdaFunctionServiceRoleDefaultPolicyA7E71BD5": Object { + "Metadata": Object { + "cfn_nag": Object { + "rules_to_suppress": Array [ + Object { + "id": "W12", + "reason": "Lambda needs the following minimum required permissions to send trace data to X-Ray.", + }, + ], + }, + }, + "Properties": Object { + "PolicyDocument": Object { + "Statement": Array [ + Object { + "Action": Array [ + "xray:PutTraceSegments", + "xray:PutTelemetryRecords", + ], + "Effect": "Allow", + "Resource": "*", + }, + ], + "Version": "2012-10-17", + }, + "PolicyName": "tests3lambdaLambdaFunctionServiceRoleDefaultPolicyA7E71BD5", + "Roles": Array [ + Object { + "Ref": "tests3lambdaLambdaFunctionServiceRoleA74F4427", + }, + ], + }, + "Type": "AWS::IAM::Policy", + }, + "tests3lambdaS3BucketAllowBucketNotificationsTotests3lambdaLambdaFunction5728304630C49926": Object { + "Properties": Object { + "Action": "lambda:InvokeFunction", + "FunctionName": Object { + "Fn::GetAtt": Array [ + "tests3lambdaLambdaFunctionB56B7023", + "Arn", + ], + }, + "Principal": "s3.amazonaws.com", + "SourceAccount": Object { + "Ref": "AWS::AccountId", + }, + "SourceArn": Object { + "Fn::GetAtt": Array [ + "tests3lambdaS3BucketBE7C1B8E", + "Arn", + ], + }, + }, + "Type": "AWS::Lambda::Permission", + }, + "tests3lambdaS3BucketBE7C1B8E": Object { + "DeletionPolicy": "Retain", + "Properties": Object { + "BucketEncryption": Object { + "ServerSideEncryptionConfiguration": Array [ + Object { + "ServerSideEncryptionByDefault": Object { + "SSEAlgorithm": "AES256", + }, + }, + ], + }, + "LoggingConfiguration": Object { + "DestinationBucketName": Object { + "Ref": "tests3lambdaS3LoggingBucket0C3BBFDC", + }, + }, + "PublicAccessBlockConfiguration": Object { + "BlockPublicAcls": true, + "BlockPublicPolicy": true, + "IgnorePublicAcls": true, + "RestrictPublicBuckets": true, + }, + }, + "Type": "AWS::S3::Bucket", + "UpdateReplacePolicy": "Retain", + }, + "tests3lambdaS3BucketNotifications1943E9B3": Object { + "DependsOn": Array [ + "tests3lambdaS3BucketAllowBucketNotificationsTotests3lambdaLambdaFunction5728304630C49926", + ], + "Properties": Object { + "BucketName": Object { + "Ref": "tests3lambdaS3BucketBE7C1B8E", + }, + "NotificationConfiguration": Object { + "LambdaFunctionConfigurations": Array [ + Object { + "Events": Array [ + "s3:ObjectCreated:*", + ], + "LambdaFunctionArn": Object { + "Fn::GetAtt": Array [ + "tests3lambdaLambdaFunctionB56B7023", + "Arn", + ], + }, + }, + ], + }, + "ServiceToken": Object { + "Fn::GetAtt": Array [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", + "Arn", + ], + }, + }, + "Type": "Custom::S3BucketNotifications", + }, + "tests3lambdaS3BucketPolicyE0402ABD": Object { + "Properties": Object { + "Bucket": Object { + "Ref": "tests3lambdaS3BucketBE7C1B8E", + }, + "PolicyDocument": Object { + "Statement": Array [ + Object { + "Action": "*", + "Condition": Object { + "Bool": Object { + "aws:SecureTransport": "false", + }, + }, + "Effect": "Deny", + "Principal": "*", + "Resource": Object { + "Fn::Join": Array [ + "", + Array [ + Object { + "Fn::GetAtt": Array [ + "tests3lambdaS3BucketBE7C1B8E", + "Arn", + ], + }, + "/*", + ], + ], + }, + "Sid": "HttpsOnly", + }, + ], + "Version": "2012-10-17", + }, + }, + "Type": "AWS::S3::BucketPolicy", + }, + "tests3lambdaS3LoggingBucket0C3BBFDC": Object { + "DeletionPolicy": "Retain", + "Metadata": Object { + "cfn_nag": Object { + "rules_to_suppress": Array [ + Object { + "id": "W35", + "reason": "This S3 bucket is used as the access logging bucket for another bucket", + }, + ], + }, + }, + "Properties": Object { + "AccessControl": "LogDeliveryWrite", + "BucketEncryption": Object { + "ServerSideEncryptionConfiguration": Array [ + Object { + "ServerSideEncryptionByDefault": Object { + "SSEAlgorithm": "AES256", + }, + }, + ], + }, + "PublicAccessBlockConfiguration": Object { + "BlockPublicAcls": true, + "BlockPublicPolicy": true, + "IgnorePublicAcls": true, + "RestrictPublicBuckets": true, + }, + }, + "Type": "AWS::S3::Bucket", + "UpdateReplacePolicy": "Retain", + }, + "tests3lambdaS3LoggingBucketPolicyC349F74C": Object { + "Properties": Object { + "Bucket": Object { + "Ref": "tests3lambdaS3LoggingBucket0C3BBFDC", + }, + "PolicyDocument": Object { + "Statement": Array [ + Object { + "Action": "*", + "Condition": Object { + "Bool": Object { + "aws:SecureTransport": "false", + }, + }, + "Effect": "Deny", + "Principal": "*", + "Resource": Object { + "Fn::Join": Array [ + "", + Array [ + Object { + "Fn::GetAtt": Array [ + "tests3lambdaS3LoggingBucket0C3BBFDC", + "Arn", + ], + }, + "/*", + ], + ], + }, + "Sid": "HttpsOnly", + }, + ], + "Version": "2012-10-17", + }, + }, + "Type": "AWS::S3::BucketPolicy", + }, + }, +} +`; diff --git a/source/patterns/@aws-solutions-constructs/aws-s3-lambda/test/s3-lambda.test.ts b/source/patterns/@aws-solutions-constructs/aws-s3-lambda/test/s3-lambda.test.ts index e5ef87b46..1f90bfa07 100644 --- a/source/patterns/@aws-solutions-constructs/aws-s3-lambda/test/s3-lambda.test.ts +++ b/source/patterns/@aws-solutions-constructs/aws-s3-lambda/test/s3-lambda.test.ts @@ -43,4 +43,22 @@ test('check properties', () => { expect(construct.lambdaFunction !== null); expect(construct.s3Bucket !== null); expect(construct.s3LoggingBucket !== null); +}); + +test('snapshot test S3ToLambda with versioning turned off', () => { + const stack = new cdk.Stack(); + + const props: S3ToLambdaProps = { + lambdaFunctionProps: { + code: lambda.Code.fromAsset(`${__dirname}/lambda`), + runtime: lambda.Runtime.NODEJS_12_X, + handler: 'index.handler' + }, + bucketProps: { + versioned: false + } + }; + + new S3ToLambda(stack, 'test-s3-lambda', props); + expect(SynthUtils.toCloudFormation(stack)).toMatchSnapshot(); }); \ No newline at end of file diff --git a/source/patterns/@aws-solutions-constructs/aws-s3-step-function/package.json b/source/patterns/@aws-solutions-constructs/aws-s3-step-function/package.json index 76d49e019..f26148267 100644 --- a/source/patterns/@aws-solutions-constructs/aws-s3-step-function/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-s3-step-function/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-s3-step-function", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS S3 to AWS Step Function integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,22 +53,22 @@ } }, "dependencies": { - "@aws-cdk/aws-stepfunctions": "~1.64.0", - "@aws-cdk/aws-stepfunctions-tasks": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-cloudwatch": "~1.64.0", - "@aws-cdk/aws-cloudtrail": "~1.64.0", - "@aws-cdk/aws-events": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-solutions-constructs/aws-events-rule-step-function": "~1.64.0", + "@aws-cdk/aws-stepfunctions": "~1.64.1", + "@aws-cdk/aws-stepfunctions-tasks": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-cloudwatch": "~1.64.1", + "@aws-cdk/aws-cloudtrail": "~1.64.1", + "@aws-cdk/aws-events": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-events-rule-step-function": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -78,18 +78,18 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-stepfunctions": "~1.64.0", - "@aws-cdk/aws-stepfunctions-tasks": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-cloudwatch": "~1.64.0", - "@aws-cdk/aws-cloudtrail": "~1.64.0", - "@aws-cdk/aws-events": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-solutions-constructs/aws-events-rule-step-function": "~1.64.0", + "@aws-cdk/aws-stepfunctions": "~1.64.1", + "@aws-cdk/aws-stepfunctions-tasks": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-cloudwatch": "~1.64.1", + "@aws-cdk/aws-cloudtrail": "~1.64.1", + "@aws-cdk/aws-events": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-solutions-constructs/aws-events-rule-step-function": "~1.64.1", "constructs": "^3.0.4", - "@aws-cdk/aws-logs": "~1.64.0" + "@aws-cdk/aws-logs": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-sns-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-sns-lambda/package.json index 95e713a3b..4d4b77736 100644 --- a/source/patterns/@aws-solutions-constructs/aws-sns-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-sns-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-sns-lambda", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK Constructs for AWS SNS to AWS Lambda integration", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-sns": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-sns": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-sns": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", + "@aws-cdk/aws-sns": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-sns-sqs/package.json b/source/patterns/@aws-solutions-constructs/aws-sns-sqs/package.json index 4495e13b5..bb02226a7 100644 --- a/source/patterns/@aws-solutions-constructs/aws-sns-sqs/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-sns-sqs/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-sns-sqs", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK constructs for defining an interaction between an Amazon SNS topic and an Amazon SQS queue.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,17 +53,17 @@ } }, "dependencies": { - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-sns": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/aws-sns-subscriptions": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-sns": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/aws-sns-subscriptions": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -73,13 +73,13 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-sns": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/aws-sns-subscriptions": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-sns": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/aws-sns-subscriptions": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/aws-sqs-lambda/package.json b/source/patterns/@aws-solutions-constructs/aws-sqs-lambda/package.json index 468aa15e9..6abffa73f 100644 --- a/source/patterns/@aws-solutions-constructs/aws-sqs-lambda/package.json +++ b/source/patterns/@aws-solutions-constructs/aws-sqs-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-sqs-lambda", - "version": "1.64.0", + "version": "1.64.1", "description": "CDK constructs for defining an interaction between an Amazon SQS queue and an AWS Lambda function.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,16 +53,16 @@ } }, "dependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -72,12 +72,12 @@ ] }, "peerDependencies": { - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "constructs": "^3.0.4" } } diff --git a/source/patterns/@aws-solutions-constructs/core/lib/s3-bucket-defaults.ts b/source/patterns/@aws-solutions-constructs/core/lib/s3-bucket-defaults.ts index d2fc57086..7d6b7e466 100644 --- a/source/patterns/@aws-solutions-constructs/core/lib/s3-bucket-defaults.ts +++ b/source/patterns/@aws-solutions-constructs/core/lib/s3-bucket-defaults.ts @@ -14,35 +14,14 @@ import * as s3 from '@aws-cdk/aws-s3'; import { RemovalPolicy } from '@aws-cdk/core'; import { Bucket, BucketProps } from '@aws-cdk/aws-s3'; -import { StorageClass } from '@aws-cdk/aws-s3/lib/rule'; -import { Duration } from '@aws-cdk/core/lib/duration'; -export function DefaultS3Props(loggingBucket ?: Bucket): s3.BucketProps { - - /** Default Life Cycle policy to transition older versions to Glacier after 90 days */ - const lifecycleRules: s3.LifecycleRule[] = [{ - noncurrentVersionTransitions: [{ - storageClass: StorageClass.GLACIER, - transitionAfter: Duration.days(90) - }] - }]; - - if (loggingBucket) { - return { - encryption: s3.BucketEncryption.S3_MANAGED, - versioned: true, - blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL, - removalPolicy: RemovalPolicy.RETAIN, - lifecycleRules, - serverAccessLogsBucket: loggingBucket - } as BucketProps; - } else { - return { - encryption: s3.BucketEncryption.S3_MANAGED, - versioned: true, - blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL, - removalPolicy: RemovalPolicy.RETAIN, - lifecycleRules - } as BucketProps; - } +export function DefaultS3Props(loggingBucket ?: Bucket, lifecycleRules?: s3.LifecycleRule[]): s3.BucketProps { + return { + encryption: s3.BucketEncryption.S3_MANAGED, + versioned: true, + blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL, + removalPolicy: RemovalPolicy.RETAIN, + ...((lifecycleRules !== undefined) && { lifecycleRules }), + ...((loggingBucket !== undefined) && { serverAccessLogsBucket: loggingBucket }) + } as BucketProps; } \ No newline at end of file diff --git a/source/patterns/@aws-solutions-constructs/core/lib/s3-bucket-helper.ts b/source/patterns/@aws-solutions-constructs/core/lib/s3-bucket-helper.ts index 01d7221f1..641f103e8 100644 --- a/source/patterns/@aws-solutions-constructs/core/lib/s3-bucket-helper.ts +++ b/source/patterns/@aws-solutions-constructs/core/lib/s3-bucket-helper.ts @@ -16,6 +16,8 @@ import * as cdk from '@aws-cdk/core'; import { DefaultS3Props } from './s3-bucket-defaults'; import { overrideProps } from './utils'; import { PolicyStatement, Effect, AnyPrincipal } from '@aws-cdk/aws-iam'; +import { StorageClass } from '@aws-cdk/aws-s3/lib/rule'; +import { Duration } from '@aws-cdk/core/lib/duration'; export interface BuildS3BucketProps { /** @@ -95,24 +97,43 @@ export function createLoggingBucket(scope: cdk.Construct, bucketId: string): s3. function s3BucketWithLogging(scope: cdk.Construct, s3BucketProps?: s3.BucketProps, bucketId?: string): [s3.Bucket, s3.Bucket?] { + /** Default Life Cycle policy to transition older versions to Glacier after 90 days */ + const lifecycleRules: s3.LifecycleRule[] = [{ + noncurrentVersionTransitions: [{ + storageClass: StorageClass.GLACIER, + transitionAfter: Duration.days(90) + }] + }]; + // Create the Application Bucket - let bucketprops; + let bucketprops: s3.BucketProps; let loggingBucket; const _bucketId = bucketId ? bucketId + 'S3Bucket' : 'S3Bucket'; const _loggingBucketId = bucketId ? bucketId + 'S3LoggingBucket' : 'S3LoggingBucket'; if (s3BucketProps?.serverAccessLogsBucket) { - bucketprops = DefaultS3Props(); + // Attach the Default Life Cycle policy ONLY IF the versioning is ENABLED + if (s3BucketProps.versioned === undefined || s3BucketProps.versioned) { + bucketprops = DefaultS3Props(undefined, lifecycleRules); + } else { + bucketprops = DefaultS3Props(); + } } else { // Create the Logging Bucket loggingBucket = createLoggingBucket(scope, _loggingBucketId); - bucketprops = DefaultS3Props(loggingBucket); + // Attach the Default Life Cycle policy ONLY IF the versioning is ENABLED + if (s3BucketProps?.versioned === undefined || s3BucketProps.versioned) { + bucketprops = DefaultS3Props(loggingBucket, lifecycleRules); + } else { + bucketprops = DefaultS3Props(loggingBucket); + } } if (s3BucketProps) { bucketprops = overrideProps(bucketprops, s3BucketProps); } + const s3Bucket: s3.Bucket = new s3.Bucket(scope, _bucketId, bucketprops); applySecureBucketPolicy(s3Bucket); diff --git a/source/patterns/@aws-solutions-constructs/core/package.json b/source/patterns/@aws-solutions-constructs/core/package.json index 6fc0b2f48..ff8e83416 100644 --- a/source/patterns/@aws-solutions-constructs/core/package.json +++ b/source/patterns/@aws-solutions-constructs/core/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/core", - "version": "1.64.0", + "version": "1.64.1", "description": "Core CDK Construct for patterns library", "main": "index.js", "types": "index.ts", @@ -52,28 +52,28 @@ } }, "dependencies": { - "@aws-cdk/aws-cloudfront": "~1.64.0", - "@aws-cdk/aws-cloudfront-origins": "~1.64.0", - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-cdk/aws-iot": "~1.64.0", - "@aws-cdk/aws-kinesis": "~1.64.0", - "@aws-cdk/aws-kinesisanalytics": "~1.64.0", - "@aws-cdk/aws-kinesisfirehose": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/aws-sns": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/aws-events": "~1.64.0", - "@aws-cdk/aws-cognito": "~1.64.0", - "@aws-cdk/aws-elasticsearch": "~1.64.0", - "@aws-cdk/aws-cloudwatch": "~1.64.0", - "@aws-cdk/aws-stepfunctions": "~1.64.0", + "@aws-cdk/aws-cloudfront": "~1.64.1", + "@aws-cdk/aws-cloudfront-origins": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-cdk/aws-iot": "~1.64.1", + "@aws-cdk/aws-kinesis": "~1.64.1", + "@aws-cdk/aws-kinesisanalytics": "~1.64.1", + "@aws-cdk/aws-kinesisfirehose": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/aws-sns": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/aws-events": "~1.64.1", + "@aws-cdk/aws-cognito": "~1.64.1", + "@aws-cdk/aws-elasticsearch": "~1.64.1", + "@aws-cdk/aws-cloudwatch": "~1.64.1", + "@aws-cdk/aws-stepfunctions": "~1.64.1", "@types/deep-diff": "^1.0.0", "@types/npmlog": "^4.1.2", "deep-diff": "^1.0.2", @@ -81,7 +81,7 @@ "npmlog": "^4.1.2" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -98,27 +98,27 @@ "@types/deep-diff" ], "peerDependencies": { - "@aws-cdk/aws-cloudfront": "~1.64.0", - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-cdk/aws-iot": "~1.64.0", - "@aws-cdk/aws-kinesis": "~1.64.0", - "@aws-cdk/aws-kinesisanalytics": "~1.64.0", - "@aws-cdk/aws-kinesisfirehose": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-lambda-event-sources": "~1.64.0", - "@aws-cdk/aws-logs": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/aws-sns": "~1.64.0", - "@aws-cdk/aws-sqs": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-kms": "~1.64.0", - "@aws-cdk/aws-events": "~1.64.0", - "@aws-cdk/aws-cognito": "~1.64.0", - "@aws-cdk/aws-elasticsearch": "~1.64.0", - "@aws-cdk/aws-cloudwatch": "~1.64.0", - "@aws-cdk/aws-stepfunctions": "~1.64.0", - "@aws-cdk/aws-cloudfront-origins": "~1.64.0" + "@aws-cdk/aws-cloudfront": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-cdk/aws-iot": "~1.64.1", + "@aws-cdk/aws-kinesis": "~1.64.1", + "@aws-cdk/aws-kinesisanalytics": "~1.64.1", + "@aws-cdk/aws-kinesisfirehose": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-lambda-event-sources": "~1.64.1", + "@aws-cdk/aws-logs": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/aws-sns": "~1.64.1", + "@aws-cdk/aws-sqs": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-kms": "~1.64.1", + "@aws-cdk/aws-events": "~1.64.1", + "@aws-cdk/aws-cognito": "~1.64.1", + "@aws-cdk/aws-elasticsearch": "~1.64.1", + "@aws-cdk/aws-cloudwatch": "~1.64.1", + "@aws-cdk/aws-stepfunctions": "~1.64.1", + "@aws-cdk/aws-cloudfront-origins": "~1.64.1" } } diff --git a/source/patterns/@aws-solutions-constructs/core/test/s3-bucket-helper.test.ts b/source/patterns/@aws-solutions-constructs/core/test/s3-bucket-helper.test.ts index 869b48254..4bbec4e91 100644 --- a/source/patterns/@aws-solutions-constructs/core/test/s3-bucket-helper.test.ts +++ b/source/patterns/@aws-solutions-constructs/core/test/s3-bucket-helper.test.ts @@ -171,3 +171,127 @@ test('Check S3 Bucket policy', () => { } })); }); + +test('s3 bucket with LoggingBucket and versioning turned off', () => { + const stack = new Stack(); + const mybucket = new Bucket(stack, 'mybucket', { + serverAccessLogsBucket: new Bucket(stack, 'myaccesslogbucket', {}) + }); + + defaults.buildS3Bucket(stack, { + bucketProps: { + serverAccessLogsBucket: mybucket, + serverAccessLogsPrefix: 'access-logs', + versioned: false + } + }); + + expectCDK(stack).to(haveResource("AWS::S3::Bucket", { + BucketEncryption: { + ServerSideEncryptionConfiguration: [ + { + ServerSideEncryptionByDefault: { + SSEAlgorithm: "AES256" + } + } + ] + }, + LoggingConfiguration: { + DestinationBucketName: { + Ref: "mybucket160F8132" + }, + LogFilePrefix: "access-logs" + }, + PublicAccessBlockConfiguration: { + BlockPublicAcls: true, + BlockPublicPolicy: true, + IgnorePublicAcls: true, + RestrictPublicBuckets: true + } + })); +}); + +test('s3 bucket versioning turned off', () => { + const stack = new Stack(); + + defaults.buildS3Bucket(stack, { + bucketProps: { + serverAccessLogsPrefix: 'access-logs', + versioned: false + } + }); + + expectCDK(stack).to(haveResource("AWS::S3::Bucket", { + BucketEncryption: { + ServerSideEncryptionConfiguration: [ + { + ServerSideEncryptionByDefault: { + SSEAlgorithm: "AES256" + } + } + ] + }, + LoggingConfiguration: { + DestinationBucketName: { + Ref: "S3LoggingBucket800A2B27" + }, + LogFilePrefix: "access-logs" + }, + PublicAccessBlockConfiguration: { + BlockPublicAcls: true, + BlockPublicPolicy: true, + IgnorePublicAcls: true, + RestrictPublicBuckets: true + } + })); +}); + +test('s3 bucket versioning turned on', () => { + const stack = new Stack(); + + defaults.buildS3Bucket(stack, { + bucketProps: { + serverAccessLogsPrefix: 'access-logs', + } + }); + + expectCDK(stack).to(haveResource("AWS::S3::Bucket", { + BucketEncryption: { + ServerSideEncryptionConfiguration: [ + { + ServerSideEncryptionByDefault: { + SSEAlgorithm: "AES256" + } + } + ] + }, + LifecycleConfiguration: { + Rules: [ + { + NoncurrentVersionTransitions: [ + { + StorageClass: "GLACIER", + TransitionInDays: 90 + } + ], + Status: "Enabled" + } + ] + }, + LoggingConfiguration: { + DestinationBucketName: { + Ref: "S3LoggingBucket800A2B27" + }, + LogFilePrefix: "access-logs" + }, + PublicAccessBlockConfiguration: { + BlockPublicAcls: true, + BlockPublicPolicy: true, + IgnorePublicAcls: true, + RestrictPublicBuckets: true + }, + VersioningConfiguration: { + Status: "Enabled" + } + })); +}); \ No newline at end of file diff --git a/source/patterns/@aws-solutions-constructs/core/test/s3-bucket.test.ts b/source/patterns/@aws-solutions-constructs/core/test/s3-bucket.test.ts index 598a1c440..c4fd0a208 100644 --- a/source/patterns/@aws-solutions-constructs/core/test/s3-bucket.test.ts +++ b/source/patterns/@aws-solutions-constructs/core/test/s3-bucket.test.ts @@ -12,111 +12,121 @@ */ import { SynthUtils } from '@aws-cdk/assert'; -import { Stack } from '@aws-cdk/core'; +import { Duration, Stack } from '@aws-cdk/core'; import * as s3 from '@aws-cdk/aws-s3'; +import * as kms from '@aws-cdk/aws-kms'; import * as defaults from '../index'; import { overrideProps } from '../lib/utils'; import '@aws-cdk/assert/jest'; +import { StorageClass } from '@aws-cdk/aws-s3/lib/rule'; test('s3 bucket with default params', () => { const stack = new Stack(); - new s3.Bucket(stack, 'test-s3-defaults', defaults.DefaultS3Props()); + + /** Default Life Cycle policy to transition older versions to Glacier after 90 days */ + const lifecycleRules: s3.LifecycleRule[] = [{ + noncurrentVersionTransitions: [{ + storageClass: StorageClass.GLACIER, + transitionAfter: Duration.days(90) + }] + }]; + + new s3.Bucket(stack, 'test-s3-defaults', defaults.DefaultS3Props(undefined, lifecycleRules)); expect(SynthUtils.toCloudFormation(stack)).toMatchSnapshot(); }); test('test s3Bucket override versioningConfiguration', () => { const stack = new Stack(); - const defaultProps: s3.CfnBucketProps = defaults.DefaultS3Props(); + const defaultProps: s3.BucketProps = defaults.DefaultS3Props(); - const inProps: s3.CfnBucketProps = { - versioningConfiguration: { - status: 'Disabled' - }, + const inProps: s3.BucketProps = { + versioned: false }; const outProps = overrideProps(defaultProps, inProps); - new s3.CfnBucket(stack, 'test-s3-verioning', outProps); + new s3.Bucket(stack, 'test-s3-verioning', outProps); expect(stack).toHaveResource("AWS::S3::Bucket", { - VersioningConfiguration: { - Status: 'Disabled' + BucketEncryption: { + ServerSideEncryptionConfiguration: [ + { + ServerSideEncryptionByDefault: { + SSEAlgorithm: "AES256" + } + } + ] + }, + PublicAccessBlockConfiguration: { + BlockPublicAcls: true, + BlockPublicPolicy: true, + IgnorePublicAcls: true, + RestrictPublicBuckets: true } }); }); test('test s3Bucket override bucketEncryption', () => { const stack = new Stack(); - const defaultProps: s3.CfnBucketProps = defaults.DefaultS3Props(); - - const inProps: s3.CfnBucketProps = { - bucketEncryption: { - serverSideEncryptionConfiguration : [{ - serverSideEncryptionByDefault: { - kmsMasterKeyId: 'mykeyid', - sseAlgorithm: 'aws:kms' - } - }] - }, + const defaultProps: s3.BucketProps = defaults.DefaultS3Props(); + + const inProps: s3.BucketProps = { + encryption: s3.BucketEncryption.KMS, + encryptionKey: new kms.Key(stack, 'mykeyid') }; const outProps = overrideProps(defaultProps, inProps); - new s3.CfnBucket(stack, 'test-s3-encryption', outProps); + new s3.Bucket(stack, 'test-s3-encryption', outProps); expect(stack).toHaveResource("AWS::S3::Bucket", { BucketEncryption: { - ServerSideEncryptionConfiguration : [{ + ServerSideEncryptionConfiguration: [ + { ServerSideEncryptionByDefault: { - KMSMasterKeyID: 'mykeyid', - SSEAlgorithm: 'aws:kms' + KMSMasterKeyID: { + "Fn::GetAtt": [ + "mykeyidFA4203B0", + "Arn" + ] + }, + SSEAlgorithm: "aws:kms" } - }] + } + ] }, }); }); test('test s3Bucket override publicAccessBlockConfiguration', () => { const stack = new Stack(); - const defaultProps: s3.CfnBucketProps = defaults.DefaultS3Props(); - - const inProps: s3.CfnBucketProps = { - publicAccessBlockConfiguration: { - blockPublicAcls: false, - blockPublicPolicy: true, - ignorePublicAcls: false, - restrictPublicBuckets: true - }, + const defaultProps: s3.BucketProps = defaults.DefaultS3Props(); + + const inProps: s3.BucketProps = { + blockPublicAccess: s3.BlockPublicAccess.BLOCK_ACLS }; const outProps = overrideProps(defaultProps, inProps); - new s3.CfnBucket(stack, 'test-s3-publicAccessBlock', outProps); + new s3.Bucket(stack, 'test-s3-publicAccessBlock', outProps); expect(stack).toHaveResource("AWS::S3::Bucket", { PublicAccessBlockConfiguration: { - BlockPublicAcls: false, - BlockPublicPolicy: true, - IgnorePublicAcls: false, - RestrictPublicBuckets: true + BlockPublicAcls: true, + IgnorePublicAcls: true }, }); }); test('test s3Bucket add lifecycleConfiguration', () => { const stack = new Stack(); - const defaultProps: s3.CfnBucketProps = defaults.DefaultS3Props(); + const defaultProps: s3.BucketProps = defaults.DefaultS3Props(); - const inProps: s3.CfnBucketProps = { - lifecycleConfiguration: { - rules: [ - { - status: 'Enabled', - expirationInDays: 365, - } - ] - } + const inProps: s3.BucketProps = { + lifecycleRules: [{ + expiration: Duration.days(365) + }] }; const outProps = overrideProps(defaultProps, inProps); - new s3.CfnBucket(stack, 'test-s3-lifecycle', outProps); + new s3.Bucket(stack, 'test-s3-lifecycle', outProps); expect(stack).toHaveResource("AWS::S3::Bucket", { LifecycleConfiguration: { @@ -130,38 +140,6 @@ test('test s3Bucket add lifecycleConfiguration', () => { }); }); -test('test s3Bucket add objectLock', () => { - const stack = new Stack(); - const defaultProps: s3.CfnBucketProps = defaults.DefaultS3Props(); - - const inProps: s3.CfnBucketProps = { - objectLockConfiguration: { - objectLockEnabled: 'Enabled', - rule: { - defaultRetention: { - days: 365 - } - } - }, - objectLockEnabled: true, - }; - - const outProps = overrideProps(defaultProps, inProps); - new s3.CfnBucket(stack, 'test-s3-objlock', outProps); - - expect(stack).toHaveResource("AWS::S3::Bucket", { - ObjectLockConfiguration: { - ObjectLockEnabled: 'Enabled', - Rule: { - DefaultRetention: { - Days: 365 - } - } - }, - ObjectLockEnabled: true - }); -}); - test('test s3Bucket override serverAccessLogsBucket', () => { const stack = new Stack(); diff --git a/source/tools/cdk-integ-tools/package.json b/source/tools/cdk-integ-tools/package.json index d35eebbd2..2eb6c3297 100644 --- a/source/tools/cdk-integ-tools/package.json +++ b/source/tools/cdk-integ-tools/package.json @@ -31,9 +31,9 @@ "typescript": "~3.7.4" }, "dependencies": { - "@aws-cdk/cloudformation-diff": "~1.64.0", - "@aws-cdk/cx-api": "~1.64.0", - "aws-cdk": "~1.64.0", + "@aws-cdk/cloudformation-diff": "~1.64.1", + "@aws-cdk/cx-api": "~1.64.1", + "aws-cdk": "~1.64.1", "fs-extra": "^8.1.0", "yargs": "^15.1.0" }, diff --git a/source/use_cases/aws-s3-static-website/package.json b/source/use_cases/aws-s3-static-website/package.json index ab58eb1b4..8763da5fe 100644 --- a/source/use_cases/aws-s3-static-website/package.json +++ b/source/use_cases/aws-s3-static-website/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-s3-static-website", - "version": "1.64.0", + "version": "1.64.1", "description": "Use case pattern for deploying a S3 static website.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -28,19 +28,19 @@ "build+lint+test": "npm run build && npm run lint && npm test && npm run integ-assert" }, "dependencies": { - "@aws-solutions-constructs/aws-cloudfront-s3": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-cloudfront": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/custom-resources": "~1.64.0", - "@aws-cdk/aws-cloudformation": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-solutions-constructs/aws-cloudfront-s3": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-cloudfront": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/custom-resources": "~1.64.1", + "@aws-cdk/aws-cloudformation": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "source-map-support": "^0.5.16" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, diff --git a/source/use_cases/aws-serverless-image-handler/package.json b/source/use_cases/aws-serverless-image-handler/package.json index 2c486e439..749894099 100644 --- a/source/use_cases/aws-serverless-image-handler/package.json +++ b/source/use_cases/aws-serverless-image-handler/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-serverless-image-handler", - "version": "1.64.0", + "version": "1.64.1", "description": "Use case pattern for deploying a serverless image handler API.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -53,18 +53,18 @@ } }, "dependencies": { - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-cloudfront": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-solutions-constructs/aws-cloudfront-apigateway-lambda": "~1.64.0", - "@aws-solutions-constructs/aws-lambda-s3": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0" + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-cloudfront": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-solutions-constructs/aws-cloudfront-apigateway-lambda": "~1.64.1", + "@aws-solutions-constructs/aws-lambda-s3": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" }, @@ -74,14 +74,14 @@ ] }, "peerDependencies": { - "@aws-solutions-constructs/aws-cloudfront-apigateway-lambda": "~1.64.0", - "@aws-solutions-constructs/aws-lambda-s3": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-cloudfront": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0" + "@aws-solutions-constructs/aws-cloudfront-apigateway-lambda": "~1.64.1", + "@aws-solutions-constructs/aws-lambda-s3": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-cloudfront": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1" } } diff --git a/source/use_cases/aws-serverless-web-app/package.json b/source/use_cases/aws-serverless-web-app/package.json index 4d41b07e0..04f714728 100644 --- a/source/use_cases/aws-serverless-web-app/package.json +++ b/source/use_cases/aws-serverless-web-app/package.json @@ -1,6 +1,6 @@ { "name": "@aws-solutions-constructs/aws-serverless-web-app", - "version": "1.64.0", + "version": "1.64.1", "description": "Use case pattern for deploying a serverless web app.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -28,24 +28,24 @@ "build+lint+test": "npm run build && npm run lint && npm test && npm run integ-assert" }, "dependencies": { - "@aws-solutions-constructs/aws-cloudfront-s3": "~1.64.0", - "@aws-solutions-constructs/aws-cognito-apigateway-lambda": "~1.64.0", - "@aws-solutions-constructs/aws-lambda-dynamodb": "~1.64.0", - "@aws-cdk/core": "~1.64.0", - "@aws-cdk/aws-lambda": "~1.64.0", - "@aws-cdk/aws-cloudfront": "~1.64.0", - "@aws-cdk/aws-s3": "~1.64.0", - "@aws-cdk/custom-resources": "~1.64.0", - "@aws-cdk/aws-cloudformation": "~1.64.0", - "@aws-cdk/aws-iam": "~1.64.0", - "@aws-cdk/aws-cognito": "~1.64.0", - "@aws-cdk/aws-apigateway": "~1.64.0", - "@aws-cdk/aws-dynamodb": "~1.64.0", - "@aws-solutions-constructs/core": "~1.64.0", + "@aws-solutions-constructs/aws-cloudfront-s3": "~1.64.1", + "@aws-solutions-constructs/aws-cognito-apigateway-lambda": "~1.64.1", + "@aws-solutions-constructs/aws-lambda-dynamodb": "~1.64.1", + "@aws-cdk/core": "~1.64.1", + "@aws-cdk/aws-lambda": "~1.64.1", + "@aws-cdk/aws-cloudfront": "~1.64.1", + "@aws-cdk/aws-s3": "~1.64.1", + "@aws-cdk/custom-resources": "~1.64.1", + "@aws-cdk/aws-cloudformation": "~1.64.1", + "@aws-cdk/aws-iam": "~1.64.1", + "@aws-cdk/aws-cognito": "~1.64.1", + "@aws-cdk/aws-apigateway": "~1.64.1", + "@aws-cdk/aws-dynamodb": "~1.64.1", + "@aws-solutions-constructs/core": "~1.64.1", "source-map-support": "^0.5.16" }, "devDependencies": { - "@aws-cdk/assert": "~1.64.0", + "@aws-cdk/assert": "~1.64.1", "@types/jest": "^24.0.23", "@types/node": "^10.3.0" },