Atlantis 0.50 on Ubuntu 26.04 on Azure User Guide
Overview
Atlantis is an open source server that runs plan and apply for your infrastructure as code pull requests. It takes webhooks from GitHub, GitLab, Bitbucket, Azure DevOps or Gitea, runs the plan when a pull request opens or changes, posts the output back as a comment, and applies when a reviewer comments atlantis apply. It locks each directory and workspace while a pull request holds it, so two changes cannot touch the same state at once. The cloudimg image delivers Atlantis 0.50.0 with the OpenTofu 1.13.11 engine, fully installed and configured on Ubuntu 26.04 LTS, behind nginx over HTTPS. The web password, the webhook secret and the TLS certificate are made on the first boot of your VM. cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours.
Atlantis is distributed under the Apache License 2.0 and OpenTofu under the Mozilla Public License 2.0; both are published on GitHub. This image bundles OpenTofu, not Terraform: Terraform has been under the Business Source License since version 1.6, so no Terraform binary ships, and Atlantis is set to drive OpenTofu, a drop-in replacement that reads the same .tf files. cloudimg is not affiliated with, endorsed by, or sponsored by the Atlantis or OpenTofu projects. This image repackages the upstream releases with cloudimg's provisioning and support.
What is included:
- Atlantis 0.50.0 from the official release (checksum verified) at
/usr/local/bin/atlantis, run as the unprivilegedatlantisuser byatlantis.service - OpenTofu 1.13.11 at
/usr/local/bin/tofu, the engine Atlantis drives (ATLANTIS_DEFAULT_TF_DISTRIBUTION=opentofu) - nginx in front of Atlantis: HTTPS on :443 for the web UI and the webhook endpoint, and :80 answering a plain
/healthcheck, accepting webhooks on/eventsand redirecting everything else to HTTPS - Atlantis's own sign-in turned on, with the user
adminand a password made for your VM; Atlantis's port 4141 is closed to everything but the VM itself - A webhook secret made for your VM, ready to paste into your repository's webhook settings
- An OpenTofu plan self-test that runs offline, so you can prove the engine works before you connect a repository
- The sign-in details in the root-only file
/root/atlantis-credentials.txt. No default or shared login ships in the image - cloudimg's support team on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours

Prerequisites
An active Azure subscription, an SSH key pair, and a VNet plus subnet in the target region. Standard_B2s (2 vCPU / 4 GiB RAM) suits a team with a few repositories; plans of large configurations with many providers want more memory. You also need an account on your Git provider that can read your repositories and comment on pull requests, with a personal access token. NSG inbound: allow 22/tcp from your management network and 443/tcp from your team and from your Git provider's webhook addresses (GitHub publishes them at https://api.github.com/meta, under hooks). 80/tcp is optional: it only redirects to HTTPS and accepts webhooks.
Step 1 — Deploy from the Azure Marketplace
Sign in to the Azure Portal, choose Create a resource, search the Marketplace for Atlantis by cloudimg, and select Create. On Basics pick your subscription, resource group, region and size; under Administrator account choose SSH public key and paste your key; under Inbound port rules allow SSH (22) and HTTPS (443). Then Review + create and Create.
Step 2 — Deploy from the Azure CLI
# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn cloudimg1647283583153:atlantis-ubuntu-26-04:default:latest
az vm create \
--resource-group <your-rg> \
--name atlantis \
--image cloudimg1647283583153:atlantis-ubuntu-26-04:default:latest \
--size Standard_B2s \
--admin-username azureuser \
--generate-ssh-keys \
--public-ip-sku Standard
Open HTTPS to reach the web UI and to receive webhooks:
az vm open-port --resource-group <your-rg> --name atlantis --port 443 --priority 900
Step 3 — Connect to your VM
ssh azureuser@<vm-public-ip>
The address is on the VM's Overview page in the portal, or from the CLI with az vm show -d -g <your-rg> -n atlantis --query publicIps -o tsv.
Step 4 — Confirm the services are running
Atlantis and nginx should both report active. Plain HTTP answers the /health check and redirects everything else to HTTPS, and Atlantis answers its /healthz check through nginx over TLS, checked against the VM's own certificate. The engine is OpenTofu, and there is no Terraform binary:
systemctl is-active atlantis nginx
curl -s -o /dev/null -w 'health -> %{http_code}\n' http://127.0.0.1/health
curl -s -o /dev/null -w 'http redirect -> %{http_code} %{redirect_url}\n' http://127.0.0.1/
curl -s --cacert /etc/nginx/ssl/atlantis.crt -w ' <- https /healthz\n' https://127.0.0.1/healthz
atlantis version
tofu version | head -1
command -v terraform || echo "no terraform binary on PATH"
Expected output:
active
active
health -> 200
http redirect -> 301 https://127.0.0.1/
{
"status": "ok"
} <- https /healthz
atlantis 0.50.0 (commit: 1a3138a) (build date: 2026-11-21T21:15:49Z)
OpenTofu v1.13.11
no terraform binary on PATH

Step 5 — Retrieve your web password and webhook secret
On the first boot of every VM, atlantis-firstboot.service makes a random web password and a random webhook secret unique to that VM, points Atlantis at the VM's address and writes the details to a root-only file. nginx makes the VM's own self-signed certificate before it first starts. No shared or default credentials ship in the image.
sudo cat /root/atlantis-credentials.txt
The file (mode 0600, root only) holds the web address, the username (admin), the password, and the webhook URL and secret for your repository:
# Atlantis 0.50 on Ubuntu 26.04 LTS - made on this VM's first boot by atlantis-firstboot.service.
# These values are unique to this VM. Store them somewhere safe.
ATLANTIS_URL=https://<VM address>/
ATLANTIS_WEB_USER=admin
ATLANTIS_WEB_PASSWORD=<ATLANTIS_WEB_PASSWORD>
ATLANTIS_WEBHOOK_URL=https://<VM address>/events
ATLANTIS_WEBHOOK_SECRET=<ATLANTIS_WEBHOOK_SECRET>
# Web UI (locks and jobs): https://<VM address>/ - sign in as admin with the password above. The certificate is
# this VM's own, self-signed, so a browser warns once.
# Connect a repository: put your GitHub user and token and your repo allowlist in /etc/atlantis/atlantis.env,
# then sudo systemctl restart atlantis, and add a webhook for the URL and secret above.
# Guide: https://www.cloudimg.co.uk/guides/atlantis-on-ubuntu-26-04-azure/
You can prove the sign-in from the VM's own shell. This reads the password from the credentials file into a variable (never onto the command line) and asks for the web UI over HTTPS with no login, with Atlantis's built-in default login atlantis / atlantis, and with your VM's password:
PW=$(sudo sed -n 's/^ATLANTIS_WEB_PASSWORD=//p' /root/atlantis-credentials.txt)
CRT=/etc/nginx/ssl/atlantis.crt
curl -s --cacert $CRT -o /dev/null -w 'no login -> %{http_code}\n' https://127.0.0.1/
printf 'user = "atlantis:atlantis"\n' | curl -s -K - --cacert $CRT -o /dev/null -w 'default atlantis/atlantis -> %{http_code}\n' https://127.0.0.1/
printf 'user = "admin:%s"\n' "$PW" | curl -s -K - --cacert $CRT -o /dev/null -w 'admin, this VM password -> %{http_code}\n' https://127.0.0.1/
unset PW
Expected output:
no login -> 401
default atlantis/atlantis -> 401
admin, this VM password -> 200

Step 6 — Sign in to the web UI
Browse to https://<vm-public-ip>/. The certificate is the VM's own self-signed one, so the browser warns once: continue past it, or install your own certificate (see Your own domain and certificate). The browser then asks for a username and password: sign in as admin with the password from Step 5.
The dashboard lists the Locks that open pull requests hold and the Jobs whose output you can follow live while a plan or apply runs. Both are empty until you connect a repository:

Disable Apply Commands sets a global apply lock: plans keep running on every pull request, but no atlantis apply runs anywhere until you lift it, which is how you freeze changes during an incident or a release. Atlantis asks you to confirm:

While the lock is on, the dashboard says so and shows when it started. Enable Apply Commands lifts it:

Atlantis's /status page, behind the same sign-in, shows the running version and how many plans or applies are in progress, which is what to check before a restart or an upgrade:

Step 7 — Run the OpenTofu plan self-test
Before you connect a repository you can prove the engine works. The self-test copies a small configuration (a built-in terraform_data resource, so it needs no provider download and no cloud credentials) into a scratch directory and runs tofu init, tofu plan and tofu show as the atlantis user, with the same binary Atlantis drives, then checks the plan's content:
sudo -u atlantis /opt/cloudimg/atlantis-selftest/plan-proof.sh
grep -A2 '^resource ' /opt/cloudimg/atlantis-selftest/main.tf
Expected output:
PLAN_PROOF_OK (OpenTofu v1.13.11)
resource "terraform_data" "cloudimg_plan_probe" {
input = "cloudimg-atlantis-plan-proof"
}

Step 8 — See how Atlantis is configured and protected
Atlantis reads its settings from /etc/atlantis/atlantis.env, one ATLANTIS_* variable per server flag. Atlantis cannot listen on one address only, so an nftables table drops its port 4141 for anything but the VM itself; only nginx on 443 (and 80) faces the network:
sudo grep -E '^ATLANTIS_(PORT|WEB_BASIC_AUTH|WEB_USERNAME|DEFAULT_TF_DISTRIBUTION|REPO_ALLOWLIST|GH_USER|DATA_DIR)=' /etc/atlantis/atlantis.env
sudo nft list table inet cloudimg_atlantis | grep -E 'hook|dport'
sudo ss -tln | grep -E ':(80|443|4141) ' | awk '{print $4}' | sort
Expected output:
ATLANTIS_PORT=4141
ATLANTIS_WEB_BASIC_AUTH=true
ATLANTIS_WEB_USERNAME=admin
ATLANTIS_DEFAULT_TF_DISTRIBUTION=opentofu
ATLANTIS_REPO_ALLOWLIST=github.com/REPLACE_ME/*
ATLANTIS_GH_USER=cloudimg-placeholder
ATLANTIS_DATA_DIR=/var/lib/atlantis/data
type filter hook input priority filter - 10; policy accept;
iifname != "lo" tcp dport 4141 counter packets 0 bytes 0 drop
*:4141
0.0.0.0:443
0.0.0.0:80
[::]:443
[::]:80

The repository allowlist starts as github.com/REPLACE_ME/*, which matches no repository (GitHub names cannot contain an underscore), and the GitHub user and token are placeholders that work against nothing. Atlantis acts on no repository until you put in your own, in the next step.
Step 9 — Connect a GitHub repository
-
On GitHub, create a personal access token for the account Atlantis will comment as (a fine-grained token on your repositories with Contents read, Pull requests and Issues read and write, and Commit statuses read and write; or a classic token with the
reposcope). -
On the VM, edit the env file and set your user, token and allowlist (keep the webhook secret first boot made):
sudo nano /etc/atlantis/atlantis.env
ATLANTIS_REPO_ALLOWLIST=github.com/your-org/*
ATLANTIS_GH_USER=your-bot-account
ATLANTIS_GH_TOKEN=<your-github-token>
- Restart Atlantis and check it is running:
sudo systemctl restart atlantis
systemctl is-active atlantis
- In the repository on GitHub, open Settings > Webhooks > Add webhook and set:
- Payload URL:
https://<vm-public-ip>/events(theATLANTIS_WEBHOOK_URLfrom Step 5) - Content type:
application/json - Secret: the
ATLANTIS_WEBHOOK_SECRETfrom Step 5 - SSL verification: with the VM's self-signed certificate choose Disable, or install your own certificate first (below) and leave it on
- Which events: Let me select individual events, then Issue comments, Pull requests, Pull request reviews and Pushes
GitHub sends a ping, and the webhook shows a green tick once Atlantis has checked its signature. Open a pull request that changes a .tf file: Atlantis comments with the plan, and atlantis apply in a comment applies it. Put an atlantis.yaml in the repository root to name projects, workspaces and workflows; the repo level atlantis.yaml documentation has the format. Your provider credentials (for example ARM_CLIENT_ID for Azure, or a managed identity on the VM) go where OpenTofu reads them; the provider credentials page covers the choices.
GitLab, Bitbucket, Azure DevOps and Gitea use their own variables in the same file in place of the ATLANTIS_GH_* ones (for example ATLANTIS_GITLAB_USER, ATLANTIS_GITLAB_TOKEN and ATLANTIS_GITLAB_WEBHOOK_SECRET); the deployment guide lists them.
You can check the webhook endpoint from the VM itself: an unsigned delivery is refused, and one signed with your VM's secret is accepted:
SECRET=$(sudo sed -n 's/^ATLANTIS_WEBHOOK_SECRET=//p' /root/atlantis-credentials.txt)
BODY='{"zen":"Keep it logically awesome."}'
SIG="sha256=$(printf '%s' "$BODY" | openssl dgst -sha256 -hmac "$SECRET" -r | cut -d' ' -f1)"
curl -s --cacert /etc/nginx/ssl/atlantis.crt -o /dev/null -w 'unsigned ping -> %{http_code}\n' -H 'Content-Type: application/json' -H 'X-GitHub-Event: ping' --data-binary "$BODY" https://127.0.0.1/events
curl -s --cacert /etc/nginx/ssl/atlantis.crt -o /dev/null -w 'signed ping -> %{http_code}\n' -H 'Content-Type: application/json' -H 'X-GitHub-Event: ping' -H "X-Hub-Signature-256: $SIG" --data-binary "$BODY" https://127.0.0.1/events
unset SECRET SIG
Expected output:
unsigned ping -> 400
signed ping -> 200
Changing the web password
Put a new password (12 characters or more) in ATLANTIS_WEB_PASSWORD in /etc/atlantis/atlantis.env, then sudo systemctl restart atlantis. Atlantis refuses to start with an empty password or its built-in default atlantis, so a mistake never leaves the UI open. Update /root/atlantis-credentials.txt too, or delete it once the password is somewhere safe.
Server components
| Component | Version | Runs as | Listens on |
|---|---|---|---|
| Atlantis | 0.50.0 | atlantis (atlantis.service) |
:4141 (closed to the network by nftables) |
| OpenTofu | 1.13.11 | run by Atlantis as atlantis |
|
| nginx | Ubuntu archive | nginx.service |
:80 (health check, webhooks, redirect), :443 (HTTPS) |
| git | Ubuntu archive | used by Atlantis to clone pull requests | |
| Ubuntu | 26.04 LTS |
Filesystem layout
| Path | What it holds |
|---|---|
/usr/local/bin/atlantis, /usr/local/bin/tofu |
The Atlantis and OpenTofu binaries |
/etc/atlantis/atlantis.env |
Atlantis's settings, including the web password, VCS token and webhook secret (root and the atlantis group only) |
/etc/atlantis/loopback-guard.nft |
The nftables table that keeps port 4141 off the network |
/var/lib/atlantis/data |
Pull request clones, plan files and Atlantis's lock database |
/opt/cloudimg/atlantis-selftest |
The OpenTofu plan self-test |
/etc/nginx/sites-available/cloudimg-atlantis |
The nginx site |
/etc/nginx/ssl/atlantis.crt, atlantis.key |
The TLS certificate and key (the key is root-only) |
/root/atlantis-credentials.txt |
The per-VM web password and webhook secret (root-only) |
/mnt |
The Azure temporary disk: lost on deallocation, never for data |
First-boot service and security model
The image ships with no web password, no webhook secret and no TLS key: they are all made on your VM. atlantis-firstboot.service runs before nginx and Atlantis, makes the password and the secret, writes the credentials file and leaves a sentinel so it runs exactly once. atlantis.service does not start before that sentinel exists, and checks before every start that Atlantis's own sign-in is on with a real password. nginx makes a self-signed certificate for the VM's address before it first starts.
systemctl status atlantis-firstboot.service --no-pager | head -3
echo | openssl s_client -connect 127.0.0.1:443 2>/dev/null | openssl x509 -noout -subject -ext subjectAltName
sudo stat -c '%a %U:%G %n' /root/atlantis-credentials.txt /etc/atlantis/atlantis.env /etc/nginx/ssl/atlantis.key
Expected output: the service active (exited) (it disables itself once it has run), a certificate made for this VM's address, and the secrets readable only by their owners:
● atlantis-firstboot.service - Atlantis first-boot initialisation (this VM's web password and webhook secret)
Loaded: loaded (/etc/systemd/system/atlantis-firstboot.service; disabled; preset: enabled)
Active: active (exited) since ...
subject=CN=<VM address>
X509v3 Subject Alternative Name:
IP Address:<VM address>, IP Address:<private IP>, DNS:localhost, IP Address:127.0.0.1
600 root:root /root/atlantis-credentials.txt
640 root:atlantis /etc/atlantis/atlantis.env
600 root:root /etc/nginx/ssl/atlantis.key
Managing the services
sudo systemctl status atlantis --no-pager | head -3
● atlantis.service - Atlantis - pull request automation for OpenTofu and Terraform
Loaded: loaded (/etc/systemd/system/atlantis.service; enabled; preset: enabled)
Active: active (running) since ...
Restart Atlantis after a settings change with sudo systemctl restart atlantis, and nginx with sudo systemctl reload nginx. Atlantis's log is in journalctl -u atlantis; nginx's are in /var/log/nginx/. Add ATLANTIS_LOG_LEVEL=debug to the env file to see each webhook Atlantis receives.
Your own domain and certificate
Point a DNS record (for example atlantis.example.com) at the VM's public address, then move the self-signed certificate, the credentials file and Atlantis's own URL (the links it puts in pull request comments) to the name in one step:
sudo cloudimg-set-public-address atlantis.example.com
Run it with no argument to go back to the VM's public IP, and again whenever the VM's address changes; update the webhook's Payload URL to match. For a certificate GitHub verifies, install one from your CA over the self-signed pair. With Let's Encrypt, once DNS points at the VM and port 80 is open to the internet, certbot's standalone mode briefly stops nginx to answer the challenge on port 80, copies the certificate into place, and saves the same steps for its automatic renewals:
sudo apt-get update && sudo apt-get install -y certbot
sudo certbot certonly --standalone -d atlantis.example.com \
--pre-hook 'systemctl stop nginx' --post-hook 'systemctl start nginx' \
--deploy-hook 'install -m 0644 "$RENEWED_LINEAGE/fullchain.pem" /etc/nginx/ssl/atlantis.crt && install -m 0600 "$RENEWED_LINEAGE/privkey.pem" /etc/nginx/ssl/atlantis.key'
A certificate you install yourself is never replaced by the image's tools. With a trusted certificate, turn SSL verification back on in the webhook.
Upgrades and maintenance
Keep the OS current with sudo apt-get update && sudo apt-get upgrade; the image ships with unattended security updates enabled. Atlantis and OpenTofu are single binaries: to move to a newer release, download it from the project's GitHub releases page, check it against the release's checksum file, replace /usr/local/bin/atlantis or /usr/local/bin/tofu, and sudo systemctl restart atlantis. Read the release notes first. A project can also pin its own OpenTofu version in atlantis.yaml (terraform_version); Atlantis downloads that version of OpenTofu when a plan needs it.
Atlantis keeps nothing you cannot rebuild: pull request clones and plans are made again on the next comment, and your infrastructure state lives in your own OpenTofu backend (an Azure Storage account, for example), never on the VM. Keep a copy of /etc/atlantis/atlantis.env and any server-side repo config you add.
Troubleshooting
- The browser shows a certificate warning. Expected with the self-signed certificate: continue past it, or install your own certificate (above).
- The browser keeps asking for a password. Sign in as
admin(notatlantis) with the password from/root/atlantis-credentials.txt. - GitHub's webhook shows a red cross. Open the delivery on GitHub:
400with "did not pass validation" means the secret differs fromATLANTIS_GH_WEBHOOK_SECRET; a certificate error means SSL verification is on with the self-signed certificate; a timeout means 443 is not open to GitHub's webhook addresses. - Atlantis comments nothing on a pull request. Check the repository matches
ATLANTIS_REPO_ALLOWLIST, that the token can comment, andjournalctl -u atlantis -n 50. atlantis.servicewill not start.journalctl -u atlantis -n 30names the reason: the start check refuses an empty, short or default web password, and Atlantis itself refuses to start without a VCS user and token.- The credentials file says first boot has not run yet. Wait a minute after the VM starts, then read it again;
journalctl -u atlantis-firstbootshows each step.
Security recommendations
- Restrict
22/tcpin the NSG to your management network, and443/tcpto your team and your Git provider's webhook addresses. - Atlantis runs
tofu planon code from pull requests, and a plan can run code (anexternaldata source, a provider). Allow only repositories you trust inATLANTIS_REPO_ALLOWLIST, and consider requiring an approved, mergeable pull request before apply (apply_requirements: [approved, mergeable]in a server-side repo config; see Atlantis's security page). - Give the VM's cloud credentials only the rights your configurations need.
- Keep the web password somewhere safe, then delete
/root/atlantis-credentials.txtif you no longer need it. - Install a certificate on your own domain before you connect production repositories.
Support
cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours, for deployment, connecting GitHub, GitLab, Bitbucket or Azure DevOps, webhooks and repository allowlists, atlantis.yaml workflows, OpenTofu and provider credentials, your own domain and certificates, and upgrades. Email support@cloudimg.co.uk.