talira

Atlantis

Terraform Pull Request Automation

open sourceApache-2.0self-hostablefree

Atlantis is a self-hosted Go server that runs Terraform from pull requests: it receives webhooks from GitHub, GitLab, Bitbucket or Azure DevOps, runs plan when a pull request changes Terraform code, posts the output as a comment, and applies when someone comments to apply, after any approvals you require. It locks each directory and workspace to the pull request that planned it until that pull request is merged or closed, keeps cloud credentials on the server instead of developers' laptops, and can block applies that fail Conftest (OPA) policies. Custom workflows replace or extend the plan and apply steps, which is how it runs Terragrunt, CDK Terrain or OpenTofu. It's a CNCF Sandbox project under Apache-2.0.

Ways to install

Package managers

Problems it solves

  • review the Terraform plan output in the pull request before anyone applies it
  • developers should be able to change infrastructure without having cloud credentials on their laptops
  • comment on a pull request to run terraform apply and see the result right there
  • two pull requests changing the same Terraform directory keep overwriting each other's plans
  • block Terraform applies that break our OPA policies until a policy owner approves
  • require an approval on the pull request before anything is applied to production
  • run Terragrunt or OpenTofu instead of plain Terraform in our pull request workflow
  • keep a record of who planned and applied every infrastructure change
  • self-hosted Terraform automation that keeps our cloud credentials inside our own network
  • find drift between our Terraform code and what's actually deployed
  • post a Slack message whenever a Terraform apply runs
  • Terraform pull request automation for GitHub, GitLab, Bitbucket or Azure DevOps repos
  • replace the plan and apply steps with our own scripts and environment variables

Features

  • plan on pull request and apply on comment, with output posted to the pull request
  • directory and workspace locks held by a pull request until it's merged or closed
  • approval and mergeable requirements before apply
  • policy checks with Conftest and OPA rego policies, with policy owners who can approve
  • custom workflows: override init, plan and apply, add run, env and multienv steps
  • Terragrunt, CDK Terrain and OpenTofu through custom workflows
  • GitHub, GitLab, Bitbucket and Azure DevOps
  • alpha API to plan, apply and detect drift outside pull requests
  • Slack and HTTP webhooks for applies and drift
  • runs from a Helm chart, Kubernetes manifests, Kustomize, Docker, AWS Fargate, GCE or a binary

Capabilities

Has an APIplan not known
Sends webhooksplan not known

Alternatives

The same job

These do what Atlantis does.

  1. Stategraph Pull request automation for Terraform and OpenTofu (formerly Terrateam)
  2. OpenTaco Self-hostable open source CI/CD for Terraform and OpenTofu
  3. Spacelift Ship infrastructure as fast as developers code
  4. Scalr A drop-in Terraform Cloud alternative, billed per run

Compare Atlantis with the top 3