Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Release 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lwarneminde committed Mar 16, 2023
1 parent d03fd84 commit afae7ca
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 deletions.
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.1.3] - 2023-03-16

### Changed
- Modified 'Building distributable for customization' steps in README
- Updated Typescript dependency due to babel__traverse [issue](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/63431)
- Run portal build with legacy [peerDependencies](https://stackoverflow.com/a/66620869/10141884) due to React update

## [1.1.2] - 2023-01-25

### Changed
Expand Down
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ We have added a new branch to this solution: the "development" branch. The "deve

## Running unit tests for customization
* Clone the repository, then make the desired code changes
* Install jest
```
npm install -g jest
```
* Next, run unit tests to make sure added customization passes the tests
```
cd ./source/aws-connect-vm-serverless
Expand All @@ -19,17 +23,20 @@ export DIST_OUTPUT_BUCKET=my-bucket-name # bucket where customized code will res
export SOLUTION_NAME=my-solution-name
export VERSION=my-version # version number for the customized code
```
_Note:_ You would have to create an S3 bucket with the prefix 'my-bucket-name-<aws_region>'; aws_region is where you are testing the customized solution. Also, the assets in bucket should be publicly accessible.
_Note:_ You would have to create an S3 bucket with the name 'my-bucket-name-<aws_region>'; aws_region is where you are testing the customized solution. Also, the assets in bucket should be accessible from the accounts you will run the CloudFormation stack.

* The build script requires Maven and npm; please ensure you have both of these installed in your environment.
* Now build the distributable:
```
chmod +x ./build-s3-dist.sh \n
./build-s3-dist.sh $DIST_OUTPUT_BUCKET $SOLUTION_NAME $VERSION \n
cd ./deployment
chmod +x ./build-s3-dist.sh
./build-s3-dist.sh $DIST_OUTPUT_BUCKET $SOLUTION_NAME $VERSION
```

* Deploy the distributable to an Amazon S3 bucket in your account. _Note:_ you must have the AWS Command Line Interface installed.
```
aws s3 cp ./dist/ s3://my-bucket-name-<aws_region>/$SOLUTION_NAME/$VERSION/ --recursive --acl bucket-owner-full-control --profile aws-cred-profile-name \n
aws s3 cp ./regional-s3-assets s3://$DIST_OUTPUT_BUCKET-<aws_region>/$SOLUTION_NAME/$VERSION/ --recursive --acl bucket-owner-full-control --profile <aws-cred-profile-name>
aws s3 cp ./global-s3-assets s3://$DIST_OUTPUT_BUCKET-<aws_region>/$SOLUTION_NAME/$VERSION/ --recursive --acl bucket-owner-full-control --profile <aws-cred-profile-name>
```

* Get the link of the solution template uploaded to your Amazon S3 bucket.
Expand All @@ -41,13 +48,12 @@ aws s3 cp ./dist/ s3://my-bucket-name-<aws_region>/$SOLUTION_NAME/$VERSION/ --re

```
|-deployment/
|-build-s3-dist.sh [ shell script for packaging distribution assets ]
|-run-unit-tests.sh [ shell script for executing unit tests ]
|-solution.yaml [ solution CloudFormation deployment template ]
|-build-s3-dist.sh [ shell script for packaging distribution assets ]
|-run-unit-tests.sh [ shell script for executing unit tests ]
|-voicemail-for-amazon-connect.template [ solution CloudFormation deployment template ]
|-source/
|-example-function-js [ Example microservice function in javascript ]
|- lib/ [ Example function libraries ]
|-example-function-py [ Example microservice function in python ]
|-aws-connect-vm-serverless [ Backend functions for processing voicemails ]
|-aws-connect-vm-portal [ Voicemail configuration portal ]
```

Expand Down
2 changes: 1 addition & 1 deletion deployment/build-s3-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ echo $source_dir
cd $source_dir/aws-connect-vm-serverless
npm install
cd ../aws-connect-vm-portal
npm install
npm install --legacy-peer-deps
cd ..
npm install typescript
npm install react-dom
Expand Down
4 changes: 2 additions & 2 deletions source/aws-connect-vm-portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"redux-thunk": "^2.3.0",
"request": "^2.88.0",
"request-promise": "^4.2.4",
"typescript": "^3.6.4"
"typescript": "^4.9.5"
},
"scripts": {
"build": "sh -ac '. ./env/.env.prod; npx react-scripts build'",
Expand Down Expand Up @@ -63,4 +63,4 @@
"remote-redux-devtools": "^0.5.16",
"replace-in-file": "^5.0.2"
}
}
}

0 comments on commit afae7ca

Please sign in to comment.