Skip to content

Commit

Permalink
update to version v1.0.3 (#32) (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
deshruch authored Aug 8, 2023
1 parent 8be832c commit b6905a6
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**/.vscode/settings.json
**/create-stack.sh
**/update-packages.sh
**/package-lock.json


# System Files
**/.DS_Store
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
16 changes: 8 additions & 8 deletions deployment/stack-set-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 2 additions & 4 deletions source/custom-resources/package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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",
Expand Down
8 changes: 3 additions & 5 deletions source/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
6 changes: 2 additions & 4 deletions source/workflow-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 2 additions & 4 deletions source/workflow-export/package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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",
Expand Down
6 changes: 2 additions & 4 deletions source/workflow-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b6905a6

Please sign in to comment.