Configuration & secrets¶
Loaded at import time in config/cfg.py via fs_config.
ENVIRONMENT¶
| Value | Secret prefix | Default |
|---|---|---|
stg |
/stg/... |
— |
prd |
/prd/... |
yes (if unset) |
Only stg and prd are valid; anything else raises on import.
Optional: AWS_REGION (defaults to us-east-1 via fs_config).
Settings¶
| Constant | Source |
|---|---|
MYSQL_SETTINGS |
Secrets Manager /{env}/mysql/tiktok |
ADMIN_API_KEY_GET |
/{env}/tiktok-api/admin-api-keys → get_key |
ADMIN_API_KEY_POST |
same secret → post_key |
S3_SETTINGS |
SSM /{env}/tiktok-api/s3 (JSON bucket + region) |
S3 buckets¶
| Environment | Bucket |
|---|---|
| staging | assets-stg.dadsnews.com |
| production | assets-prd.dadsnews.com |
No static AWS keys in code — IAM role or local AWS profile.
Branches¶
| Branch | Role |
|---|---|
stage |
Integration — per-task PRs target here |
master |
Production lineage |
Full IAM and CLI setup: SKYN-7200-aws-secrets.md and secrets-and-config.md.