Skip to content
Hoist

Connect AWS

Hoist works in your AWS account with the access keys of an IAM user that you create. The user only has the Hoist policy, so you can see exactly what it allows, and deactivate the key to revoke access at any time.

Create the user and its keys

  1. Under Settings → Cloud accounts, choose Connect AWS and copy the Hoist policy (or download it).
  2. In the AWS console, open IAM → Policies → Create policy, switch to JSON, paste the policy, and name it Hoist.
  3. Open IAM → Users → Create user. Name it hoist and leave console access off. On Set permissions, choose Attach policies directly and tick the Hoist policy.
  4. Open the new user, go to Security credentials → Create access key, and choose Application running outside AWS.
  5. Back in Hoist, paste the access key ID and the secret access key, then choose Connect. AWS only shows the secret once.

Hoist checks the keys, then creates the IAM role its servers run as (HoistServerRole-…, with an instance profile). If the keys or the policy are wrong, nothing is saved.

What the policy allows

The policy lets Hoist create servers, networks, databases and backup buckets, tagged hoist:managed=true as they're made. It can only change or delete:

  • servers, volumes, Elastic IPs, security groups, databases and Lightsail resources tagged hoist:managed=true;
  • S3 backup buckets named hoist-backups-*, and IAM roles named Hoist*.

Static sites don't need anything in your AWS account: Hoist hosts them itself, or they run on one of your servers.

Tags keep Hoist from changing anything else by mistake, but anyone holding the access key could tag other resources and then change them, so treat the key like a password: give it only to Hoist, and rotate it if it may have leaked.

Your keys are stored encrypted, and are never shown again after you save them.

Rotating or revoking the keys

To rotate, create a second access key for the hoist user, connect AWS again with it (the account keeps its servers), then delete the old key. To revoke Hoist's access, deactivate or delete the key in IAM, then disconnect the account in Hoist.

When the policy changes

When new features need new permissions, update the Hoist policy in IAM with the latest version from Connect AWS. Your servers keep working while you do.

What Hoist creates

The first server in a region creates a VPC (10.42.0.0/16) with public and private subnets, and security groups that allow web traffic from anywhere and SSH only from Hoist. Databases go in the private subnets, reachable only from your servers.