Skip to main content

Atlantis

Atlantis is an open-source, self-hosted tool that runs Terraform through pull requests. It runs terraform plan when a PR is opened, posts the output as a comment, and runs terraform apply when a reviewer comments atlantis apply.

What Is Atlantis?

Atlantis is a server you host that listens for webhooks from GitHub, GitLab, Bitbucket, or Azure DevOps and runs Terraform inside pull requests. Every reviewer sees the real plan output next to the code change, and apply only runs after an explicit comment, so the audit trail lives in Git.

How Do You Configure It?

YAML
# atlantis.yaml at the repo root
version: 3
projects:
- name: prod-vpc
dir: environments/prod/vpc
apply_requirements: [approved, mergeable] # block apply until approved

Key Commands

Comment What It Does
atlantis plan Plans projects changed in the PR
atlantis apply Applies planned, approved projects
atlantis unlock Releases locks held by the PR

Atlantis locks a directory as soon as a plan runs, so two PRs cannot apply to the same state at once.

Security

Atlantis holds powerful cloud credentials. Set orgAllowlist and a webhook secret, and scope its IAM role tightly.

Frequently Asked Questions

Does Atlantis require approval before apply by default?

No. You must set apply_requirements such as approved and mergeable, and allow that override in the server-side repo config.

When would I pick Atlantis over a plain CI pipeline?

When you want a PR-comment workflow with built-in locking and are happy to host the server. A CI pipeline needs you to build locking and comments yourself.

Found a mistake, an outdated step or a broken link?