Aliases and regions
An alias is your short name for an account, a role and a region. It’s what you
type after hop.
Create aliases
Section titled “Create aliases”Right after adding a source, cloudhop lets you pick accounts and name them. To add more later:
cloudhop alias acmeTick the accounts and roles you want (type to filter). For each one, cloudhop asks for:
- The alias. Lowercase letters, numbers,
-and_. Pick something you can type fast:acme-prod,billing-ro,sandbox. - The region. It defaults to the portal’s region. If you type another one, it becomes the default for the next alias, so a batch in the same region needs no retyping.
Some names are reserved because they are commands: add, alias, login,
region, setup, sync, ls, list, rm, remove, doctor, exec,
provider, ui, help and version.
Change the region of an alias
Section titled “Change the region of an alias”cloudhop region acme-prod eu-west-1 # straight awaycloudhop region acme-prod # asks, suggesting the current onecloudhop region # pick the alias from a listFor company portals the profile in ~/.aws/config changes too, so other
tools follow. cloudhop rejects typos such as us-wst-1.
Need another region just once? Pass it to the command:
hop acme-prod s3 ls --region ap-southeast-2cloudhop exec acme-prod --region ap-southeast-2 -- terraform planRename an alias
Section titled “Rename an alias”cloudhop mv globex-northwind-prod-01-globex-prod-ps-support-ops northwind-prodThe account, role, region and production mark stay, and so does its AWS profile (renamed too). In the web UI, use the ✎ button.
Short names by default
Section titled “Short names by default”When you create aliases, cloudhop suggests short names from the account: it
drops the portal’s own prefix and trailing numbers (Globex_Northwind_Prod_01
in the globex portal becomes northwind-prod) and adds the role only when
the same account has several (contoso-prod-admin, contoso-prod-support-ops).
Production aliases
Section titled “Production aliases”cloudhop asks whether each new alias is production (and suggests yes for
names like prod or live). Production aliases ask before any change. See
Protect production.
Remove aliases and sources
Section titled “Remove aliases and sources”cloudhop rm acme-dev # an aliascloudhop rm acme-dev acme-qa # severalcloudhop rm acme # a whole source and its aliases (asks first)cloudhop rm acme --yes # without asking, for scriptsIf an alias and a source share a name, cloudhop rm <name> removes the
alias; use cloudhop rm --source <name> for the source.
See everything
Section titled “See everything”cloudhop ls # every source with its aliasescloudhop ls acme # just one source