Keys / DigitalOcean
DIGITALOCEAN_ACCESS_TOKEN
The DigitalOcean personal access token doctl and your scripts call the DigitalOcean API with.
- Expires
- you choose when you create it
- API
- none; Control Panel only
Get it
Create one on cloud.digitalocean.com/account/api/tokens. The steps aren't recorded yet.
Set it
DIGITALOCEAN_ACCESS_TOKEN=...
doctl reads it for the default context, and the Terraform provider reads it when DIGITALOCEAN_TOKEN isn't set. Or keep it out of .env with keypin: keypin run -- npm run dev
Replace it
- Open the token's … menu on the Applications & API page and select Regenerate. It keeps the token's scopes; the old value stops working.
- Deploy the new value everywhere that reads
DIGITALOCEAN_ACCESS_TOKEN. - To avoid a gap, generate a new token with the same scopes instead. Deploy it, check that nothing still uses the old one, then delete it.
Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.