Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Environment Variables

Instructions for setting up environment variables.

Each environment has its own file (staging.env, production.env), loaded by mise when MISE_ENV is set:

export MISE_ENV=staging   # loads instance/staging.env via mise.staging.toml

These files hold credentials and are gitignored. Verify with echo $ENVIRONMENT.

CLOUDFLARE_API_TOKEN

API token the Terraform Cloudflare provider uses.

  1. Go to Cloudflare dashboard → profile icon (top right) → ProfileAPI Tokens
  2. Click Create TokenCreate Custom Token
  3. Name it (e.g. Infrastructure Staging) and add the permissions:
    • AccountWorkers R2 StorageEdit
    • ZoneZoneEdit
  4. Scope it to a specific account under Account Resources
  5. Continue to summaryCreate Token

TF_VAR_cloudflare_account_id

Cloudflare account ID where resources are created.

  1. Go to Cloudflare dashboard
  2. Copy the 32-character hex ID from the URL right after dash.cloudflare.com/, or find it under any zone's Overview page in the right sidebar as Account ID