Merge pull request #5466 from xbs13/patch-2

Fix Atlas tutorial steps for currently released version
This commit is contained in:
James Nugent 2016-03-06 13:11:05 -06:00
commit 3eb0a95f53
1 changed files with 20 additions and 4 deletions

View File

@ -29,16 +29,32 @@ from long-running Terraform processes.
You can learn how to use Terraform remotely with our [interactive tutorial](https://atlas.hashicorp.com/tutorial/terraform/?utm_source=oss&utm_medium=getting-started&utm_campaign=terraform)
or you can follow the outlined steps below.
First, configure [Terraform remote state storage](/docs/commands/remote.html)
with the command:
First, If you don't have an Atlas account, you can [create an account here](https://atlas.hashicorp.com/account/new?utm_source=oss&utm_medium=getting-started&utm_campaign=terraform).
In order for the Terraform CLI to gain access to your Atlas account you're going to need to generate an access key. From the main menu, select your username in the top right corner to access your profile. Under `Personal`, click on the `Tokens` tab and hit generate.
For the purposes of this tutorial you can use this token by exporting it to your local shell session:
```
$ export ATLAS_TOKEN=ATLAS_ACCESS_TOKEN
```
Replace `ATLAS_ACCESS_TOKEN` with the token generated earlier
Then configure [Terraform remote state storage](/docs/commands/remote.html) with the command:
```
$ terraform remote config -backend-config="name=ATLAS_USERNAME/getting-started"
```
Replace `ATLAS_USERNAME` with your Atlas username. If you don't have one, you can
[create an account here](https://atlas.hashicorp.com/account/new?utm_source=oss&utm_medium=getting-started&utm_campaign=terraform).
Replace `ATLAS_USERNAME` with your Atlas username.
Before you [push](/docs/commands/push.html) your Terraform configuration to Atlas you'll need to start a local version control system with at least one commit. Here is an example using `git`.
```
$ git init
$ git add example.tf
$ git commit -m "init commit"
```
Next, [push](/docs/commands/push.html) your Terraform configuration to Atlas with:
```