Environment Variables

The following is a non-exhaustive list of the environment variables that can be used to configure Moto.

Key

Value

Default

Explanation

TEST_SERVER_MODE

bool

False

Useful when you want to run decorated tests against an existing MotoServer.
All boto3-clients/resources created within the test will point to http://localhost:5000.

INITIAL_NO_AUTH_ACTION_COUNT

int

0

See IAM-like Access Control.

DEFAULT_CONTAINER_REGISTRY

str

docker.io

Registry that contains the Docker containers.
Used by AWSLambda and Batch.

MOTO_ALLOW_NONEXISTENT_REGION

bool

False

MOTO_ENABLE_ISO_REGIONS

bool

False

Enable the mocking of ISO regions (ISO, ISO-B, ISO-E, ISO-F)

MOTO_EVENTS_INVOKE_HTTP

str

See events.

MOTO_S3_CUSTOM_ENDPOINTS

str

See s3.

MOTO_PRETTIFY_RESPONSES

bool

False

Prettify responses from Moto, making it easier to read and debug.