Skip to content

Requirements โ€‹

Atlantis works with most Git hosts and Terraform setups. Read on to confirm it works with yours.

Git Host โ€‹

Atlantis integrates with the following Git hosts:

  • GitHub (public, private or enterprise)
  • GitLab (public, private or enterprise)
  • Gitea (public, private and compatible forks like Forgejo)
  • Bitbucket Cloud aka bitbucket.org (public or private)
  • Bitbucket Server aka Stash
  • Azure DevOps

Terraform State โ€‹

Atlantis supports all backend types except for local state. We don't support local state because Atlantis does not have permanent storage and it doesn't commit the new statefile back to version control.

TIP

If you're looking for an easy remote state solution, check out free remote state storage from Terraform Cloud. This is fully supported by Atlantis.

Repository Structure โ€‹

Atlantis supports any Terraform repository structure, for example:

Single Terraform Project At Repo Root โ€‹

plain
.
โ”œโ”€โ”€ main.tf
โ””โ”€โ”€ ...

Multiple Project Folders โ€‹

plain
.
โ”œโ”€โ”€ project1
โ”‚ย ย  โ”œโ”€โ”€ main.tf
|   โ””โ”€โ”€ ...
โ””โ”€โ”€ project2
 ย ย  โ”œโ”€โ”€ main.tf
    โ””โ”€โ”€ ...

Modules โ€‹

plain
.
โ”œโ”€โ”€ project1
โ”‚ย ย  โ”œโ”€โ”€ main.tf
|   โ””โ”€โ”€ ...
โ””โ”€โ”€ modules
 ย ย  โ””โ”€โ”€ module1
 ย ย      โ”œโ”€โ”€ main.tf
        โ””โ”€โ”€ ...

With modules, if you want project1 automatically planned when module1 is modified you need to create an atlantis.yaml file. See atlantis.yaml Use Cases for more details.

Terraform Workspaces โ€‹

See Terraform's docs if you are unfamiliar with workspaces.

If you're using Terraform >= 0.9.0, Atlantis supports workspaces through an atlantis.yaml file that tells Atlantis the names of your workspaces (see atlantis.yaml Use Cases for more details)

.tfvars Files โ€‹

plain
.
โ”œโ”€โ”€ production.tfvars
โ”‚โ”€โ”€ staging.tfvars
โ””โ”€โ”€ main.tf

For Atlantis to be able to plan automatically with .tfvars files, you need to create an atlantis.yaml file to tell it to use -var-file={YOUR_FILE}. See atlantis.yaml Use Cases for more details.

Multiple Repos โ€‹

Atlantis supports multiple repos as wellโ€“as long as there is a webhook configured for each repo.

Terraform Versions โ€‹

Atlantis supports all Terraform versions (including 0.12) and can be configured to use different versions for different repositories/projects. See Terraform Versions.

Next Steps โ€‹