Skip to content

Environment Variables

StackPort is configured entirely through environment variables. No config files needed.

VariableDefaultDescription
AWS_ENDPOINT_URL(unset)AWS endpoint URL. Unset uses real AWS via credential chain.
AWS_REGIONus-east-1AWS region.
AWS_ACCESS_KEY_ID(unset)AWS access key. Unset uses credential chain.
AWS_SECRET_ACCESS_KEY(unset)AWS secret key. Unset uses credential chain.
AWS_PROFILE(unset)AWS named profile from ~/.aws/credentials.
VariableDefaultDescription
STACKPORT_PORT8080Server port.
STACKPORT_ALLOW_WRITEStrueEnable write operations (POST/PUT/DELETE). Set to false for read-only mode.
STACKPORT_S3_MAX_UPLOAD_MB100Maximum S3 upload size per object in MiB.
STACKPORT_SERVICES(all 35)Comma-separated list of services to probe.
STACKPORT_PROBE_TIMEOUT5Seconds before a service probe times out.
STACKPORT_CACHE_TTL5Seconds to cache service stats.
STACKPORT_PROBE_WORKERS10Max concurrent workers for service probing.
LOG_LEVELINFOPython log level. DEBUG shows healthcheck logs.

Connect to several AWS environments at once:

Terminal window
STACKPORT_ENDPOINTS="local=http://localhost:4566,staging=http://staging:4566,prod=" \
AWS_PROFILE=prod AWS_REGION=us-west-1 stackport

The format is name=url pairs, comma-separated. An empty URL (like prod=) uses the default credential chain for real AWS.