Skip to content

Commit

Permalink
track terraform version using tfenv (#78)
Browse files Browse the repository at this point in the history
* set terraform version to 0.12.30 for current compatibility

* add instructions to use tfenv to manage terraform version
  • Loading branch information
98sean98 authored Apr 10, 2021
1 parent 8377fbe commit c354fda
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/.terraform-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.12.30
20 changes: 20 additions & 0 deletions terraform/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Terraform code for Phoenix

## Install `terraform` using `tfenv`

```shell script
brew install tfenv
```

Check if your `terraform` matches the version in `.terraform-version`.

```shell script
cat .terraform-version
terraform version
```

If not, install and use the right version with `tfenv`.

```shell script
tfenv install [version]
tfenv use [version]
```

## Apply

To run locally, make sure you have the right environment variables in `secrets.tfvars`.
Expand Down

0 comments on commit c354fda

Please sign in to comment.