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

Commit afae7ca

Browse files
committed
Release 1.1.3
1 parent d03fd84 commit afae7ca

File tree

4 files changed

+26
-13
lines changed

4 files changed

+26
-13
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.1.3] - 2023-03-16
8+
9+
### Changed
10+
- Modified 'Building distributable for customization' steps in README
11+
- Updated Typescript dependency due to babel__traverse [issue](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/63431)
12+
- Run portal build with legacy [peerDependencies](https://stackoverflow.com/a/66620869/10141884) due to React update
13+
714
## [1.1.2] - 2023-01-25
815

916
### Changed

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ We have added a new branch to this solution: the "development" branch. The "deve
66

77
## Running unit tests for customization
88
* Clone the repository, then make the desired code changes
9+
* Install jest
10+
```
11+
npm install -g jest
12+
```
913
* Next, run unit tests to make sure added customization passes the tests
1014
```
1115
cd ./source/aws-connect-vm-serverless
@@ -19,17 +23,20 @@ export DIST_OUTPUT_BUCKET=my-bucket-name # bucket where customized code will res
1923
export SOLUTION_NAME=my-solution-name
2024
export VERSION=my-version # version number for the customized code
2125
```
22-
_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.
26+
_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.
2327

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

3036
* Deploy the distributable to an Amazon S3 bucket in your account. _Note:_ you must have the AWS Command Line Interface installed.
3137
```
32-
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
38+
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>
39+
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>
3340
```
3441

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

4249
```
4350
|-deployment/
44-
|-build-s3-dist.sh [ shell script for packaging distribution assets ]
45-
|-run-unit-tests.sh [ shell script for executing unit tests ]
46-
|-solution.yaml [ solution CloudFormation deployment template ]
51+
|-build-s3-dist.sh [ shell script for packaging distribution assets ]
52+
|-run-unit-tests.sh [ shell script for executing unit tests ]
53+
|-voicemail-for-amazon-connect.template [ solution CloudFormation deployment template ]
4754
|-source/
48-
|-example-function-js [ Example microservice function in javascript ]
49-
|- lib/ [ Example function libraries ]
50-
|-example-function-py [ Example microservice function in python ]
55+
|-aws-connect-vm-serverless [ Backend functions for processing voicemails ]
56+
|-aws-connect-vm-portal [ Voicemail configuration portal ]
5157
5258
```
5359

deployment/build-s3-dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ echo $source_dir
7878
cd $source_dir/aws-connect-vm-serverless
7979
npm install
8080
cd ../aws-connect-vm-portal
81-
npm install
81+
npm install --legacy-peer-deps
8282
cd ..
8383
npm install typescript
8484
npm install react-dom

source/aws-connect-vm-portal/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"redux-thunk": "^2.3.0",
3333
"request": "^2.88.0",
3434
"request-promise": "^4.2.4",
35-
"typescript": "^3.6.4"
35+
"typescript": "^4.9.5"
3636
},
3737
"scripts": {
3838
"build": "sh -ac '. ./env/.env.prod; npx react-scripts build'",
@@ -63,4 +63,4 @@
6363
"remote-redux-devtools": "^0.5.16",
6464
"replace-in-file": "^5.0.2"
6565
}
66-
}
66+
}

0 commit comments

Comments
 (0)