You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,4 +89,18 @@ eb deploy
89
89
eb open
90
90
```
91
91
92
+
## Local Testing
92
93
94
+
This section contains instructions on how to test the application locally (using mocked services instead of the real AWS services).
95
+
96
+
### LocalStack
97
+
98
+
To test this application using [LocalStack](https://github.com/localstack/localstack), you can use the `awslocal` CLI (https://github.com/localstack/awscli-local).
99
+
```
100
+
pip install awscli-local
101
+
```
102
+
Simply parameterize the `./createResources.sh` installation script with `aws_cmd=awslocal`:
103
+
```
104
+
cd aws; aws_cmd=awslocal ./createResources.sh
105
+
```
106
+
Once the code is deployed to the local S3 server, the application is accessible via http://localhost:4572/cognitosample-localapp/index.html (Assuming "localapp" has been chosen as resource name in the previous step)
0 commit comments