Environment Variables
Martin takes its configuration from command line parameters and the configuration file.
A configuration file can read any environment variable you name in it, for example connection_string: ${DATABASE_URL}.
See the configuration section for the substitution syntax.
Martin itself reacts to the following variables.
| Environment var | Description |
|---|---|
AWS_LAMBDA_RUNTIME_API |
If defined, connect to AWS Lambda to handle requests. The regular HTTP server is not used. See Running in AWS Lambda |
AWS_CONTAINER_CREDENTIALS_RELATIVE_URIAWS_CONTAINER_CREDENTIALS_FULL_URIAWS_CONTAINER_AUTHORIZATION_TOKEN_FILEAWS_WEB_IDENTITY_TOKEN_FILEAWS_ROLE_ARNAWS_ROLE_SESSION_NAMEAWS_ENDPOINT_URL_STS |
Injected by ECS, Fargate and EKS to say where the task role's credentials come from. Used for S3-backed PMTiles sources unless pmtiles.profile or the matching pmtiles.* setting is configured. See PMTiles sources |