You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: runatlantis.io/docs/terraform-cloud.md
+27-16
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,14 @@
1
-
# Terraform Cloud
1
+
# Terraform Cloud/Enterprise
2
2
3
-
::: tip
4
-
Terraform Enterprise was [recently renamed](https://www.hashicorp.com/blog/introducing-terraform-cloud-remote-state-management) Terraform Cloud.
3
+
::: tip NOTE
4
+
Terraform Enterprise was [recently renamed](https://www.hashicorp.com/blog/introducing-terraform-cloud-remote-state-management) Terraform Cloud
5
+
and Private Terraform Enteprise was renamed Terraform Enterprise.
5
6
:::
6
7
7
-
Atlantis integrates seamlessly with Terraform Cloud, whether you're using:
8
+
Atlantis integrates seamlessly with Terraform Cloud and Terraform Enterprise, whether you're using:
8
9
*[Free Remote State Management](https://app.terraform.io/signup)
9
10
* Terraform Cloud Paid Tiers
10
-
* Private Terraform Enterprise
11
+
*A Private Installation of Terraform Enterprise
11
12
12
13
Read the docs below :point_down: depending on your use-case.
13
14
[[toc]]
@@ -16,20 +17,21 @@ Read the docs below :point_down: depending on your use-case.
16
17
To use Atlantis with Free Remote State Storage, you need to:
17
18
1. Migrate your state to Terraform Cloud. See [Getting Started with the Terraform Cloud Free Tier](https://www.terraform.io/docs/enterprise/free/index.html#enable-remote-state-in-terraform-configurations)
18
19
1. Update any projects that are referencing the state you migrated to use the new location
19
-
1.[Generate a Terraform Cloud Token](#generating-a-terraform-cloud-token)
20
+
1.[Generate a Terraform Cloud/Enterprise Token](#generating-a-terraform-cloud-enterprise-token)
20
21
1.[Pass the token to Atlantis](#passing-the-token-to-atlantis)
21
22
22
23
That's it! Atlantis will run as normal and your state will be stored in Terraform
23
24
Cloud.
24
25
25
-
## Using Atlantis With Terraform Cloud Paid Tiers
26
-
Atlantis integrates with the full version of Terraform Cloud via its [remote backend](https://www.terraform.io/docs/backends/types/remote.html).
26
+
## Using Atlantis With Terraform Cloud Remote Operations or Terraform Enterprise
27
+
Atlantis integrates with the full version of Terraform Cloud and Terraform Enterprise
28
+
via the [remote backend](https://www.terraform.io/docs/backends/types/remote.html).
27
29
28
30
Atlantis will run `terraform` commands as usual, however those commands will
29
-
actually be executed *remotely* in Terraform Cloud.
31
+
actually be executed *remotely* in Terraform Cloud or Terraform Enterprise.
30
32
31
33
### Why?
32
-
Using Atlantis with Terraform Cloud gives you access to features like:
34
+
Using Atlantis with Terraform Cloud or Terraform Enterprise gives you access to features like:
33
35
* Real-time streaming output
34
36
* Ability to cancel in-progress commands
35
37
* Secret variables
@@ -38,14 +40,14 @@ Using Atlantis with Terraform Cloud gives you access to features like:
38
40
**Without** having to change your pull request workflow.
39
41
40
42
### Getting Started
41
-
To use Atlantis with Terraform Cloud Paid Tiers, you need to:
42
-
1. Migrate your state to Terraform Cloud. See [Migrating State from Terraform Open Source](https://www.terraform.io/docs/enterprise/migrate/index.html)
43
+
To use Atlantis with Terraform Cloud Remote Operations or Terraform Enterprise, you need to:
44
+
1. Migrate your state to Terraform Cloud/Enterprise. See [Migrating State from Terraform Open Source](https://www.terraform.io/docs/enterprise/migrate/index.html)
43
45
1. Update any projects that are referencing the state you migrated to use the new location
44
-
1.[Generate a Terraform Cloud Token](#generating-a-terraform-cloud-token)
46
+
1.[Generate a Terraform Cloud/Enterprise Token](#generating-a-terraform-cloud-enterprise-token)
45
47
1.[Pass the token to Atlantis](#passing-the-token-to-atlantis)
46
48
47
-
## Generating a Terraform Cloud Token
48
-
Atlantis needs a Terraform Cloud Token that it will use to access the API.
49
+
## Generating a Terraform Cloud/Enterprise Token
50
+
Atlantis needs a Terraform Cloud/Enterprise Token that it will use to access the API.
49
51
Using a **Team Token is recommended**, however you can also use a User Token.
50
52
51
53
### Team Token
@@ -62,9 +64,18 @@ The token can be passed to Atlantis via the `ATLANTIS_TFE_TOKEN` environment var
62
64
You can also use the `--tfe-token` flag, however your token would then be easily
63
65
viewable in the process list.
64
66
65
-
That's it! Atlantis should be able to perform Terraform operations using Terraform Cloud's
67
+
If you're hosting your own Terraform Enterprise installation, set the `--tfe-hostname`
68
+
flag to its hostname.
69
+
70
+
That's it! Atlantis should be able to perform Terraform operations using Terraform Cloud/Enterprise's
66
71
remote state backend now.
67
72
73
+
:::warning
74
+
The Terraform Cloud/Enterprise integration only works with the built-in
75
+
`plan` and `apply` steps. It does not work with custom `run` steps that replace
76
+
plan or apply.
77
+
:::
78
+
68
79
:::tip NOTE
69
80
Under the hood, Atlantis is generating a `~/.terraformrc` file.
70
81
If you already had a `~/.terraformrc` file where Atlantis is running,
0 commit comments