Add missing instructions to create the localstack-tutorial docker network
rodzic
08740af94e
commit
0297981add
|
@ -11,6 +11,9 @@ Usage
|
|||
Run
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Ovski4/tutorials.git
|
||||
cd localstack-part-1
|
||||
docker network create localstack-tutorial
|
||||
docker-compose up -d
|
||||
docker-compose logs -f localstack
|
||||
```
|
||||
|
@ -49,7 +52,7 @@ aws lambda create-function \
|
|||
|
||||
Invoke the function multiple times and scan the table to see new items and their counters being incremented:
|
||||
|
||||
``bash
|
||||
```bash
|
||||
aws lambda invoke --function-name counter --endpoint-url=http://localhost:4574 --payload '{"id": "test"}' output.txt
|
||||
aws dynamodb scan --endpoint-url http://localhost:4569 --table-name table_1
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ Usage
|
|||
Run
|
||||
|
||||
```bash
|
||||
docker network create localstack-tutorial
|
||||
docker-compose up -d
|
||||
docker-compose logs -f localstack
|
||||
```
|
||||
|
@ -26,6 +27,8 @@ cd ..
|
|||
Wait for set up to be done, then apply the Terraform configuration:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Ovski4/tutorials.git
|
||||
cd localstack-part-2
|
||||
terraform init
|
||||
terraform plan
|
||||
terraform apply --auto-approve
|
||||
|
@ -33,7 +36,7 @@ terraform apply --auto-approve
|
|||
|
||||
Invoke the lambda multiple times and scan the table to see new items and their counters being incremented:
|
||||
|
||||
``bash
|
||||
```bash
|
||||
aws lambda invoke --function-name counter --endpoint-url=http://localhost:4574 --payload '{"id": "test"}' output.txt
|
||||
aws dynamodb scan --endpoint-url http://localhost:4569 --table-name table_1
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue