Skip to content

Commit

Permalink
Add instruction about running Terraform init first
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmingoia committed Dec 22, 2023
1 parent 5c677e1 commit 0d51b48
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ sudo mv terraformer-rootly-${ARCH} /usr/local/bin/terraformer-rootly

### 2. Prepare working directory

Prepare a working directory containing `versions.tf`:
Prepare a Terraform working directory with the Rootly provider installed.

If starting from scratch create a `versions.tf` file:

```tf
terraform {
Expand All @@ -31,10 +33,12 @@ terraform {
}
```

Set the `ROOTLY_API_TOKEN` environment variable.
and run `terraform init` to initialize Terraform.

### 3. Import Terraform configuration

Set the `ROOTLY_API_TOKEN` environment variable or use `--token=` CLI flag when running `terraformer-rootly`.

Import all resources:

```sh
Expand Down

0 comments on commit 0d51b48

Please sign in to comment.