diff --git a/.gitignore b/.gitignore index 29058df..227670c 100644 --- a/.gitignore +++ b/.gitignore @@ -21,7 +21,7 @@ **/.vscode/settings.json **/create-stack.sh **/update-packages.sh -**/package-lock.json + # System Files **/.DS_Store diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ff7008..917102b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ 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.0.3] - 2023-08-02 +### Changed +- Updated Lambda function(s) runtime to nodejs16.x + ## [1.0.2] - 2023-05-03 ### Changed - Enabled Amazon S3 server access logging on logging bucket(s) using bucket policy diff --git a/README.md b/README.md index 4fb0b55..a2ee0eb 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ For more information and a detailed deployment guide visit the [solution home pa ### 1. Prerequsites The following procedures assumes that all of the OS-level configuration has been completed. They are: - [AWS Command Line Interface](https://aws.amazon.com/cli/) -- Node.js 12.x +- Node.js 16.x -The Cognito User Profiles Export Reference Architecture is developed with Node.js for the microservices that run in AWS Lambda. The latest version has been tested with Node.js 12.x. +The Cognito User Profiles Export Reference Architecture is developed with Node.js for the microservices that run in AWS Lambda. The latest version has been tested with Node.js 16.x. ### 2. Clone the Cognito User Profiles Export Reference Architecture repository Clone the ```cognito-user-profiles-export-reference-architecture``` GitHub repositroy, then make the desired code changes. diff --git a/deployment/cognito-user-profiles-export-reference-architecture.yaml b/deployment/cognito-user-profiles-export-reference-architecture.yaml index 87dcae9..8f6aabb 100644 --- a/deployment/cognito-user-profiles-export-reference-architecture.yaml +++ b/deployment/cognito-user-profiles-export-reference-architecture.yaml @@ -114,7 +114,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "custom-resources.zip"]] Handler: "custom-resources/global-table-creator.handler" Role: !GetAtt GlobalTableCreatorRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 120 MemorySize: 128 Environment: @@ -214,7 +214,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "custom-resources.zip"]] Handler: "custom-resources/global-table-checker.handler" Role: !GetAtt GlobalTableCheckerRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 300 MemorySize: 128 Environment: @@ -369,7 +369,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "custom-resources.zip"]] Handler: "custom-resources/stack-checker.handler" Role: !GetAtt StackCheckerCustomResourceLambdaRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 120 MemorySize: 128 Environment: @@ -464,7 +464,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "custom-resources.zip"]] Handler: "custom-resources/solution-constants.handler" Role: !GetAtt SolutionConstantsCustomResourceLambdaRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 60 MemorySize: 128 Environment: @@ -527,7 +527,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "custom-resources.zip"]] Handler: "custom-resources/stackset-manager.handler" Role: !GetAtt StackSetManagerCustomResourceLambdaRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 300 MemorySize: 128 Environment: @@ -825,7 +825,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "custom-resources.zip"]] Handler: "custom-resources/check-stackset-status.handler" Role: !GetAtt StackSetCheckStatusLambdaRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 300 MemorySize: 128 Environment: diff --git a/deployment/stack-set-template.yaml b/deployment/stack-set-template.yaml index 9970d15..766eeee 100644 --- a/deployment/stack-set-template.yaml +++ b/deployment/stack-set-template.yaml @@ -106,7 +106,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "custom-resources.zip"]] Handler: "custom-resources/stackset-constants.handler" Role: !GetAtt StackSetConstantsCustomResourceLambdaRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 60 MemorySize: 128 Environment: @@ -705,7 +705,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "workflow-common.zip"]] Handler: "workflow-common/check-workflow-queues.handler" Role: !GetAtt CheckWorkflowQueuesLambdaRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 60 MemorySize: 128 Environment: @@ -773,7 +773,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "workflow-import.zip"]] Handler: "workflow-import/check-new-user-pool.handler" Role: !GetAtt ImportCheckNewUserPoolLambdaRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 60 MemorySize: 128 Environment: @@ -839,7 +839,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "workflow-import.zip"]] Handler: "workflow-import/scan-table.handler" Role: !GetAtt ImportScanTableLambdaRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 300 MemorySize: 128 Environment: @@ -959,7 +959,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "workflow-import.zip"]] Handler: "workflow-import/import-users.handler" Role: !GetAtt ImportNewUsersLambdaRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 900 MemorySize: 1024 # Higher memory size to allow for large CSV files to be uploaded to the Cognito User Import Job Environment: @@ -1071,7 +1071,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "workflow-import.zip"]] Handler: "workflow-import/import-users.handler" Role: !GetAtt ImportCheckImportJobLambdaRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 60 MemorySize: 128 Environment: @@ -1157,7 +1157,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "workflow-import.zip"]] Handler: "workflow-import/update-new-users.handler" Role: !GetAtt ImportUpdateNewUsersLambdaRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 900 MemorySize: 128 Environment: @@ -1978,7 +1978,7 @@ Resources: S3Key: !Join ["/", [!FindInMap ["Solution", "Config", "S3KeyPrefix"], "workflow-export.zip"]] Handler: "workflow-export/export-users.handler" Role: !GetAtt ExportUsersLambdaRole.Arn - Runtime: nodejs14.x + Runtime: nodejs16.x Timeout: 900 MemorySize: 128 Environment: diff --git a/source/custom-resources/package.json b/source/custom-resources/package.json index a7cc6a9..785b101 100644 --- a/source/custom-resources/package.json +++ b/source/custom-resources/package.json @@ -1,9 +1,7 @@ { "name": "custom-resources", "description": "Custom Resources to support Cognito User Profiles Export Reference Architecture", - "author": { - "name": "aws-solutions-builder" - }, +"author": {"name": "Amazon Web Services", "url": "https://aws.amazon.com/solutions"}, "license": "Apache-2.0", "version": "1.0.2", "private": true, @@ -14,7 +12,7 @@ "devDependencies": { "aws-sdk": "^2.904.0", "axios-mock-adapter": "^1.19.0", - "jest": "^26.6.3" + "jest": "^29.6.1" }, "scripts": { "clean": "rm -rf dist/ node_modules/ coverage/ package-lock.json", diff --git a/source/utils/package.json b/source/utils/package.json index 14327f5..cb62725 100644 --- a/source/utils/package.json +++ b/source/utils/package.json @@ -6,16 +6,14 @@ "clean": "rm -rf dist/ node_modules/ coverage/ package-lock.json", "test": "jest --config jestconfig.json --coverage --silent" }, - "author": { - "name": "aws-solutions-builder" - }, +"author": {"name": "Amazon Web Services", "url": "https://aws.amazon.com/solutions"}, "license": "Apache-2.0", "dependencies": { - "axios": "^0.21.1", + "axios": "^1.4.0", "moment": "^2.27.0" }, "devDependencies": { "axios-mock-adapter": "^1.19.0", - "jest": "^26.6.3" + "jest": "^29.6.1" } } diff --git a/source/workflow-common/package.json b/source/workflow-common/package.json index b0fd7ac..c47874a 100644 --- a/source/workflow-common/package.json +++ b/source/workflow-common/package.json @@ -2,15 +2,13 @@ "name": "workflow-common", "version": "1.0.2", "description": "Common functionality for all Step Functions Workflows", - "author": { - "name": "aws-solutions-builder" - }, + "author": {"name": "Amazon Web Services", "url": "https://aws.amazon.com/solutions"}, "license": "Apache-2.0", "private": true, "dependencies": {}, "devDependencies": { "aws-sdk": "^2.904.0", - "jest": "^26.6.3" + "jest": "^29.6.1" }, "scripts": { "clean": "rm -rf dist/ node_modules/ coverage/ package-lock.json", diff --git a/source/workflow-export/package.json b/source/workflow-export/package.json index ba8e527..9af5318 100644 --- a/source/workflow-export/package.json +++ b/source/workflow-export/package.json @@ -1,9 +1,7 @@ { "name": "workflow-export", "description": "Exports Cognito user profiles, group data and group memberships to the solution's Backup Table in DynamoDB", - "author": { - "name": "aws-solutions-builder" - }, +"author": {"name": "Amazon Web Services", "url": "https://aws.amazon.com/solutions"}, "license": "Apache-2.0", "version": "1.0.2", "private": true, @@ -12,7 +10,7 @@ }, "devDependencies": { "aws-sdk": "^2.904.0", - "jest": "^26.6.3" + "jest": "^29.6.1" }, "scripts": { "clean": "rm -rf dist/ node_modules/ coverage/ package-lock.json", diff --git a/source/workflow-import/package.json b/source/workflow-import/package.json index e46526e..a5f2faf 100644 --- a/source/workflow-import/package.json +++ b/source/workflow-import/package.json @@ -10,14 +10,12 @@ "package": "npm run clean && npm install --production && npm run package:dist && npm run package:zip", "build": "npm run clean && rm -f package-lock.json && npm install" }, - "author": { - "name": "aws-solutions-builder" - }, +"author": {"name": "Amazon Web Services", "url": "https://aws.amazon.com/solutions"}, "license": "Apache-2.0", "devDependencies": { "aws-sdk": "^2.904.0", "axios-mock-adapter": "^1.19.0", - "jest": "^26.6.3" + "jest": "^29.6.1" }, "dependencies": { "axios": "^0.21.1",