moto/docs/docs/configuration/environment_variables.rst
2023-06-28 21:23:33 +00:00

34 lines
3.1 KiB
ReStructuredText

.. _environment_variables:
.. role:: raw-html(raw)
:format: html
=======================
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. :raw-html:`<br />` |
| | | | All boto3-clients/resources created within the test will point to `http://localhost:5000`. |
+-------------------------------+----------+-----------+-------------------------------------------------------------------------------------------------+
| INITIAL_NO_AUTH_ACTION_COUNT | int | 0 | See :ref:`iam access control`. |
+-------------------------------+----------+-----------+-------------------------------------------------------------------------------------------------+
| DEFAULT_CONTAINER_REGISTRY | str | docker.io | Registry that contains the Docker containers. :raw-html:`<br />` |
| | | | 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_S3_CUSTOM_ENDPOINTS | str | | See :ref:`s3`. |
+-------------------------------+----------+-----------+-------------------------------------------------------------------------------------------------+