Skip to content

Protect production

Mark the aliases that point to production:

Terminal window
cloudhop prod acme-prod billing-prod # mark
cloudhop prod # list the production aliases
cloudhop prod acme-prod --off # unmark

When you create aliases, cloudhop asks “Is it production?” and already suggests yes for names like prod, prd, production or live. The web UI has a Prod checkbox on every alias. Production aliases show a red PROD tag in cloudhop ls, cloudhop status, the web UI and the alias picker.

  • Reading is free. hop acme-prod s3 ls, describe-*, list-*, get-*, logs tail, downloads (s3 cp s3://… ./) and anything with --dryrun run straight away, with a red reminder that you are in production.

  • Changing asks first. Anything else, and anything cloudhop isn’t sure about, shows the alias, account, region and the exact command, and asks Run it in acme-prod? with No as the default.

    ▲ PRODUCTION acme-prod → acme-production / AdministratorAccess, us-east-1
    This may change resources: aws s3 rm s3://reports/2024.csv
    ◆ Run it in acme-prod?
    │ ○ Yes / ● No
  • cloudhop exec always asks for production aliases, because cloudhop can’t know what another tool (Terraform, a script) will do.

  • cloudhop each asks once more for the production aliases in the selection when the command may change something.

Without a terminal there is nobody to ask, so changes on production are refused with PROD_CONFIRMATION_REQUIRED. Once a person has approved that exact command, set CLOUDHOP_CONFIRM_PROD=1 for it:

Terminal window
CLOUDHOP_CONFIRM_PROD=1 hop acme-prod s3 rm s3://reports/2024.csv

The AI assistant skill teaches your assistant exactly this: show you the command, wait for your yes, and only then rerun it with that variable (or, through MCP, with confirm_production: true). It must never set it on its own.