You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
641 B
Markdown
35 lines
641 B
Markdown
# Setup aws localstack
|
|
|
|
1. Start docker
|
|
|
|
```
|
|
$ docker-composer up -d
|
|
```
|
|
|
|
2. to enter CLI
|
|
|
|
```
|
|
// check image name
|
|
$ docker ps
|
|
|
|
// enter interactive bash shell
|
|
$ docker exec -it mongo-5-mongo-1 bash
|
|
|
|
// enter to mongo shell
|
|
$ docker exec -it mongo-5-mongo-1 mongosh "mongodb://root@localhost:27017"
|
|
```
|
|
|
|
3. To test server. Using aws-cli to connect `localhost:27017`. login : `root` password : `example`
|
|
|
|
4. Stop server
|
|
```
|
|
$ docker-compose down
|
|
```
|
|
|
|
https://dev.to/goodidea/how-to-fake-aws-locally-with-localstack-27me
|
|
https://www.maxcode.net/blog/using-localstack-for-development-environments/
|
|
|
|
Ports
|
|
|
|
* 4566-4599 : services
|
|
* 9000 : WEB ui |