|
Size: 251
Comment:
|
Size: 1046
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 services: motoserver: image: motoserver/moto:latest ports: - "4000:4000" environment: - MOTO_PORT=4000 # set moto listener port with env var }}} {{{#!highlight shell docker compose up # Install aws cli cd ~/Downloads curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install aws --version export AWS_ENDPOINT_URL="http://localhost:4000" }}} |
moto
A python library that allows you to easily mock out tests based on AWS infrastructure.
Create S3 bucket
compose.yaml
