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?
# atlantis.yaml at the repo rootversion: 3projects: - name: prod-vpc dir: environments/prod/vpc apply_requirements: [approved, mergeable] # block apply until approvedKey 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.
SecurityAtlantis holds powerful cloud credentials. Set
orgAllowlistand 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.