Skip to content

Commit

Permalink
Update to version v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
@tomnight committed May 21, 2021
1 parent f5f2280 commit 9139b29
Show file tree
Hide file tree
Showing 41 changed files with 604 additions and 24,655 deletions.
31 changes: 29 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
node_modules/
coverage/
# compiled output
**/dist
**/global-s3-assets
**/regional-s3-assets
**/open-source
**/.zip
**/tmp
**/out-tsc
**/coverage

# dependencies
**/node_modules

# e2e
**/e2e/*.js
**/e2e/*.map

# misc
**/npm-debug.log
**/testem.log
**/.vscode/settings.json
**/create-stack.sh
**/update-packages.sh
**/package-lock.json

# System Files
**/.DS_Store
**/.vscode
source/test
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ 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.1] - 2021-05-21
### Added
- Updated SNS Topic Display Name ([#7](https://github.com/awslabs/cognito-user-profiles-export-reference-architecture/issues/7))
- Updated regular expression for secondary region CloudFormation parameter ([#2](https://github.com/awslabs/cognito-user-profiles-export-reference-architecture/issues/2))
- Updated README to include instructions on staging assets in secondary region when building from source ([#3](https://github.com/awslabs/cognito-user-profiles-export-reference-architecture/issues/3))
- Updated Node runtime for Lambda functions

## [1.0.0] - 2020-08-31
### Added
- Launch Cognito User Profiles Export Reference Architecture
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ For more information and a detailed deployment guide visit the [solution home pa
- [Architecture Overview](#architecture-overview)
- [Getting Started](#getting-started)
- [File Structure](#file-structure)
- [Collection of operational metrics](#collection-of-operational-metrics)
- [License](#license)

## Architecture Overview
Expand Down Expand Up @@ -43,6 +44,7 @@ chmod +x ./run-unit-tests.sh
### 4. Declare environment variables
```bash
export REGION=aws-region-code # the AWS region to launch the solution (e.g. us-east-1)
export SECONDARY_REGION=aws-region-code # the AWS region that will serve as backup (e.g. eu-central-1)
export DIST_OUTPUT_BUCKET=my-bucket-name # bucket where customized code will reside
export SOLUTION_NAME=my-solution-name
export VERSION=my-version # version number for the customized code
Expand All @@ -52,6 +54,7 @@ export VERSION=my-version # version number for the customized code
The AWS CloudFormation template is configured to pull the AWS Lambda deployment packages from Amazon S3 bucket in the region the template is being launched in. Create a bucket in the desitred region name appended to the name of the bucket. _Note:_ you must have the AWS Command Line Interface installed.
```bash
aws s3 mb s3://$DIST_OUTPUT_BUCKET-$REGION --region $REGION
aws s3 mb s3://$DIST_OUTPUT_BUCKET-$SECONDARY_REGION --region $SECONDARY_REGION
```

### 6. Build the Cognito User Profiles Export Reference Architecture for deployment
Expand All @@ -64,6 +67,7 @@ chmod +x ./build-s3-dist.sh
* Deploy the distributable to an Amazon S3 bucket in your account. _Note:_ you must have the AWS Command Line Interface installed.
```bash
aws s3 cp ./regional-s3-assets/ s3://$DIST_OUTPUT_BUCKET-$REGION/$SOLUTION_NAME/$VERSION/ --recursive --acl bucket-owner-full-control
aws s3 cp ./regional-s3-assets/ s3://$DIST_OUTPUT_BUCKET-$SECONDARY_REGION/$SOLUTION_NAME/$VERSION/ --recursive --acl bucket-owner-full-control
```

### 8. Launch the Cognito User Profiles Export Reference Architecture
Expand Down Expand Up @@ -108,6 +112,10 @@ aws s3 cp ./regional-s3-assets/ s3://$DIST_OUTPUT_BUCKET-$REGION/$SOLUTION_NAME/
|- update-new-users.js [ Updates users that have been imported to the new user pool ]
```

## Collection of operational metrics

This solution collects anonymous operational metrics to help AWS improve the quality and features of the solution. For more information, including how to disable this capability, please see the [implementation guide](https://docs.aws.amazon.com/solutions/latest/cognito-user-profiles-export-reference-architecture/appendix-c.html).

## License
Cognito User Profiles Export Reference Architecture is distributed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).

Expand Down
5 changes: 3 additions & 2 deletions deployment/build-s3-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ echo "[Building] Utils"
echo "------------------------------------------------------------------------------"
cd $source_dir/utils
npm run clean
npm ci --production
npm install --production

declare -a lambda_packages=(
"custom-resources"
Expand All @@ -88,5 +88,6 @@ do
echo "------------------------------------------------------------------------------"
exit 1
fi
cp ./dist/package.zip $build_dist_dir/$lambda_package.zip
mv ./dist/package.zip $build_dist_dir/$lambda_package.zip
npm run clean
done
Loading

0 comments on commit 9139b29

Please sign in to comment.