---
# System prepended metadata

title: mock aws

---

# mock aws
https://localstack.cloud/
https://github.com/localstack/localstack

## TLDR



instal·lar docker i pip per instalar-lo via pip
```
sudo apt install python3-pip docker.io -y
sudo usermod -aG docker alumne01
exit
```

comprova que ja pertanys al grup docker (tornant a connectar-te)
```
id
```


finalment instal·lem localstack
```
pip install localstack
PATH=$PATH:/home/alumne01/.local/bin
localstack start
```
...espera a veure que està actiu
```
[2021-11-25 15:45:06 +0000] [21] [INFO] Running on https://0.0.0.0:4566 (CTRL + C to quit)
2021-11-25T15:45:06.479:INFO:hypercorn.error: Running on https://0.0.0.0:4566 (CTRL + C to quit)

```

i des d'un altre terminal...
```
ssh -p 40022 alumne01@127.0.0.1
```

crear un àlias per invocar-lo
```
alias awslocal='aws --endpoint-url=http://localhost:4566'
```
