2017-02-23 19:43:48 -05:00
|
|
|
import os
|
|
|
|
|
2019-10-31 08:44:26 -07:00
|
|
|
TEST_SERVER_MODE = os.environ.get("TEST_SERVER_MODE", "0").lower() == "true"
|
|
|
|
INITIAL_NO_AUTH_ACTION_COUNT = float(
|
|
|
|
os.environ.get("INITIAL_NO_AUTH_ACTION_COUNT", float("inf"))
|
|
|
|
)
|
2021-02-18 16:58:20 +08:00
|
|
|
DEFAULT_CONTAINER_REGISTRY = os.environ.get("DEFAULT_CONTAINER_REGISTRY", "docker.io")
|
2020-12-03 18:32:06 +00:00
|
|
|
|
2021-03-26 17:51:19 +01:00
|
|
|
S3_IGNORE_SUBDOMAIN_BUCKETNAME = os.environ.get(
|
|
|
|
"S3_IGNORE_SUBDOMAIN_BUCKETNAME", ""
|
|
|
|
) in ["1", "true"]
|
|
|
|
|
2021-04-10 17:13:20 +10:00
|
|
|
# How many seconds to wait before we "validate" a new certificate in ACM.
|
|
|
|
ACM_VALIDATION_WAIT = int(os.environ.get("MOTO_ACM_VALIDATION_WAIT", "60"))
|
|
|
|
|
2020-12-03 18:32:06 +00:00
|
|
|
|
|
|
|
def get_sf_execution_history_type():
|
|
|
|
"""
|
|
|
|
Determines which execution history events `get_execution_history` returns
|
|
|
|
:returns: str representing the type of Step Function Execution Type events should be
|
|
|
|
returned. Default value is SUCCESS, currently supports (SUCCESS || FAILURE)
|
|
|
|
"""
|
|
|
|
return os.environ.get("SF_EXECUTION_HISTORY_TYPE", "SUCCESS")
|
2021-06-10 05:48:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
def get_s3_default_key_buffer_size():
|
|
|
|
return int(os.environ.get("MOTO_S3_DEFAULT_KEY_BUFFER_SIZE", 16 * 1024 * 1024))
|