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. |
INITIAL_NO_AUTH_ACTION_COUNT |
int |
0 |
|
DEFAULT_CONTAINER_REGISTRY |
str |
docker.io |
Registry that contains the Docker containers. |
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_S3_DEFAULT_MAX_KEYS |
str |
See s3. |
|
S3_IGNORE_SUBDOMAIN_BUCKETNAME |
str |
See s3. |
|
MOTO_PRETTIFY_RESPONSES |
bool |
False |
Prettify responses from Moto, making it easier to read and debug. |
MOTO_DISABLE_GLOBAL_CORS |
bool |
False |
Disable configuring global wildcard CORS. |