File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11# AWS S3 Demo
22
3- End-to-end test of the generated S3 client against a mock S3 server (Moto ).
3+ End-to-end test of the generated S3 client against a mock S3 server (LocalStack ).
44
55## Prerequisites
66
@@ -10,26 +10,25 @@ End-to-end test of the generated S3 client against a mock S3 server (Moto).
1010## Quick Start
1111
1212``` bash
13- make docker/ test
13+ make test
1414```
1515
1616This will:
17171 . Generate Unison code from Smithy model
18182 . Install UCM locally (from GitHub releases, same version as Docker)
19193 . Compile all Unison code locally
20- 4 . Build Docker containers
21- 5 . Run the compiled demo
20+ 4 . Start LocalStack in docker
21+ 5 . Create the stack with terraform against LocalStack endpoint
22+ 6 . Run the compiled demo
2223
2324The demo will execute functions from the generated ` s3_client ` against a mocked S3 bucket
2425
25- Reference: [ Moto - Mock AWS Services] ( https://github.com/getmoto/moto )
26-
2726``` shell
2827╔══════════════════════════════════════════╗
29- ║ S3 Client Demo (Moto Backend) ║
28+ ║ S3 Client Demo (LocalStack Backend) ║
3029╚══════════════════════════════════════════╝
3130
32- Endpoint: http://moto:5050
31+ Endpoint: http://localhost:4566
3332Region: us-east-1
3433Bucket: us-east-1-nonprod-configs
3534
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ main = do
7070runDemo : '{IO, Exception, Threads} ()
7171runDemo = do
7272 printLine "╔══════════════════════════════════════════╗"
73- printLine "║ S3 Client Demo (Moto Backend) ║"
73+ printLine "║ S3 Client Demo (LocalStack Backend) ║"
7474 printLine "╚══════════════════════════════════════════╝"
7575 printLine ""
7676
You can’t perform that action at this time.
0 commit comments