|
Size: 251
Comment:
|
Size: 798
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 5: | Line 5: |
| * [[ https://docs.getmoto.org/en/latest/docs/getting_started.html|getting started with moto]] |
* [[https://docs.getmoto.org/en/latest/docs/getting_started.html|getting started with moto]] == Create S3 bucket == {{{#!highlight shell export AWS_ACCESS_KEY_ID='testing' export AWS_SECRET_ACCESS_KEY='testing' export AWS_SECURITY_TOKEN='testing' export AWS_SESSION_TOKEN='testing' export AWS_DEFAULT_REGION='us-east-1' docker run --rm -p 5000:5000 --name moto motoserver/moto:latest }}} compose.yaml {{{#!highlight yaml motoserver: image: motoserver/moto:latest ports: - "4000:4000" environment: - MOTO_PORT=4000 # set moto listener port with env var }}} {{{#!highlight shell docker compose up }}} |
moto
A python library that allows you to easily mock out tests based on AWS infrastructure.
Create S3 bucket
compose.yaml
1 docker compose up
