AWS#
One Studio account per AWS account, signed with the access key of an IAM user made for Studio. Studio signs its requests itself (Signature Version 4), no SDK and no CLI on the server.
- EC2
- Instances: launch (newest Ubuntu LTS or any AMI, type, key pair, security group, subnet, disk, cloud-init), start, stop, reboot, terminate, change type, create an image, console output, termination protection. Key pairs (generate, import), security groups (open and close ports), Elastic IPs, EBS volumes (attach, detach, snapshot, resize), AMIs.
- Lightsail, all of it
- Instances (create, power, snapshots, firewall ports, SSH access details), instance and disk snapshots (restore to a new instance or disk), static IPs, disks, key pairs, managed databases (power, snapshot, master password, public access), load balancers, container services, buckets (public or private, plan, access keys), DNS zones and records, distributions (CDN), certificates, alarms, the operations log.
- The rest
- RDS (start, stop, reboot, snapshot, class), S3 buckets (create, delete, region), Route 53 zones and records, CloudFront (invalidate), and on Overview the identity and the cost of the month by service (Cost Explorer charges $0.01 a request, so it is a button).
The credentials#
- AWS console → IAM → Users → Create user, for instance
studio, without access to the console. - Permissions → Add permissions → Create inline policy → JSON: paste the policy below, name it
studio. For an account the team only looks at, attach AWS'sReadOnlyAccessinstead. - The user's Security credentials → Create access key, use case Application running outside AWS.
Copy the Access key ID (
AKIA…) and the Secret access key: AWS shows the secret once. - In Studio: both keys and the Default region, the one most of your servers are in (each tab's region filter switches to another). The Session token is only for temporary credentials (STS, IAM Identity Center), which expire within hours: prefer the IAM user.
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": [
"ec2:*", "lightsail:*",
"rds:Describe*", "rds:StartDBInstance", "rds:StopDBInstance", "rds:RebootDBInstance",
"rds:CreateDBSnapshot", "rds:ModifyDBInstance",
"s3:ListAllMyBuckets", "s3:GetBucketLocation", "s3:CreateBucket", "s3:DeleteBucket",
"route53:*",
"cloudfront:ListDistributions", "cloudfront:GetDistribution", "cloudfront:CreateInvalidation",
"ce:GetCostAndUsage"
],
"Resource": "*"
}]
}Keep only what the team uses: without the rds: lines the RDS tab shows AWS's refusal and everything
else works. The first Lightsail database or container service needs a service-linked role; if AWS refuses it, add
"iam:CreateServiceLinkedRole". To rotate, create a second access key on the same user (AWS allows
two), edit the account in Studio, then deactivate and delete the old key.
Typical tasks#
- A new EC2 server with a fixed IP: EC2 → Key pairs → Import a public key (once); Security groups → New security group, then Open a port for 22, 80 and 443; EC2 instances → Launch an instance with that key and group; Elastic IPs → Allocate an IP, then Associate with the instance.
- A Lightsail server with its domain: Lightsail → Instances → New instance; Static IPs → Allocate a static IP → Attach; DNS zones → New DNS zone, set the nameservers it shows at the registrar, then Records → New record (A, the static IP).
- Before a risky change: Snapshot in the instance's menu (Lightsail), or Create an image (AMI) (EC2); restore from Instance snapshots → New instance from it.
- After a deploy: Storage & CDN → CloudFront → Invalidate with
/*, or Lightsail → Distributions → Reset the cache.
DigitalOcean#
One Studio account per team, with a personal access token of that team.
Droplets (create with region, size, image, SSH keys, backups, IPv6, monitoring, tags, cloud-init; power on, shut down, reboot, power cycle, power off, snapshot, resize, rename, rebuild, backups, root password reset, destroy), domains and DNS records, SSH keys, firewalls (create, apply to Droplets), volumes (attach, detach, resize), snapshots, reserved IPs, load balancers, managed databases (connection details, backups, databases inside), App Platform (deploy, deployments, spec), Kubernetes (kubeconfig, node pools), the usage and balance of the month.
The credentials#
- cloud.digitalocean.com → API → Tokens: switch to the team to drive first (top left), then Generate New Token.
- A name (
studio), an expiration, and Full Access; or Custom Scopes with read and write on droplet, domain, ssh_key, firewall, block_storage, snapshot, reserved_ip, load_balancer, database, app and kubernetes, plus read on account, billing, regions, sizes and image. - Copy the token (
dop_v1_…, shown once) into Personal access token. One account per team; when the token expires, generate a new one and edit the account.
Typical tasks#
- A new server: SSH keys → Add a key (once); Droplets → New Droplet with
region, size, image and the key; Firewalls → New firewall with
22, 80, 443and the Droplet. - Its domain: Domains → Add a domain (with the Droplet's IP for the apex), set the
nameservers
ns1–ns3.digitalocean.comat the registrar, then DNS records → New record forwww. - Bigger: Shut down, Resize (tick the disk only if you will never go back), Power on.
Hetzner#
Hetzner Cloud. A token belongs to one project, so each project is a Studio account of its own.
Servers (create with type, location, image, SSH keys, firewalls, IPv4/IPv6, backups, cloud-init; power on, shut down, reboot, reset, power off, snapshot, change type, rename, rescue mode, root password reset, rebuild, backups, protection, delete), SSH keys, firewalls (inbound ports and the servers they apply to), volumes, floating and primary IPs, networks, load balancers, snapshots and backups, managed certificates, DNS zones and record sets.
The credentials#
- console.hetzner.com → the project → Security → API tokens → Generate API token.
- A description (
studio) and Read & Write; Read lists but cannot act. - Copy the token (shown once) into API token. Name the Studio account after the project.
DNS zones are the project's zones in Hetzner Console (DNS inside the Cloud API). Zones still on the old dns.hetzner.com do not show until they are moved to the Console.
Typical tasks#
- A new server: SSH keys → Add a key; Firewalls → New firewall with
22, 80, 443; Servers → New server with type, location, image, the key and the firewall. Without a key Hetzner sets a root password, which Studio shows once. - Locked out of a server: Rescue mode (Studio shows the rescue root password), then Reboot; fix it over SSH; Leave rescue mode and reboot again.
- Open one more port: Firewalls → Inbound ports and edit the list; it replaces the rules of that firewall.
Cloudflare#
One Studio account per API token. A token can reach several Cloudflare accounts: the account tabs have a filter to pick one.
Zones (add, with the nameservers to set; purge everything or some URLs; SSL/TLS mode, Always use HTTPS, minimum TLS, security level and I'm under attack, development mode, Brotli; current settings; pause, activation check, delete), DNS records (create, edit, proxy on and off, delete, export as BIND), Workers, Pages (deploy, recent deployments), R2 buckets and tunnels (create, the command that runs them, public hostnames).
The credentials#
- dash.cloudflare.com → My Profile → API Tokens → Create Token → Create Custom Token. Not the Global API Key, which Studio does not accept.
- Permissions, keeping only the rows you need:
Scope Permission For Zone Zone: Edit · Zone Settings: Edit · DNS: Edit · Cache Purge: Purge Zones, settings, records, purge Account Account Settings: Read Listing the accounts (needed) Account Workers Scripts: Edit · Cloudflare Pages: Edit · Workers R2 Storage: Edit · Cloudflare Tunnel: Edit The Workers, Pages, R2 and Tunnels tabs - Account Resources: the account(s) to drive; Zone Resources: All zones from an account, or only some zones. An expiry (TTL) is a good idea.
- Copy the token (shown once) into API token.
Typical tasks#
- Move a domain to Cloudflare: Zones → Add a zone (the existing records are imported); set the two nameservers Studio shows at the registrar; Check activation until the zone is active; then Settings → SSL/TLS Full (strict) and Always use HTTPS.
- Under attack: the zone's Settings → Security level I'm under attack; back to Medium when it is over.
- After a deploy: Purge everything, or Purge URLs for a few files.
Deploy on Pages builds the production branch again, for projects connected to git; projects uploaded by hand deploy from where they are built.