Skip to content

Commit 72c1709

Browse files
committed
chore: use tfenv for managing terraform versions and also pin the current version
Part of #1268 [skip ci]
1 parent f688301 commit 72c1709

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

infra/terraform/.terraform-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.12.19

infra/terraform/README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
# Provisioning a server with Terraform
22

3-
* Setup credentials (only first time)
3+
* Install [tfenv](https://github.com/tfutils/tfenv) and terraform
44
```console
5+
$ brew install tfenv
56
$ cd infra/terraform
7+
$ export HTTPS_PROXY=socks5://127.0.0.1:1122 # optionally
8+
$ tfenv install
9+
```
10+
* Setup credentials (only first time)
11+
```console
612
$ cp terraform.tfvars{.example,}
713
$ vim terraform.tfvars
814
```
915
* Initialize and download modules (if needed)
1016
```console
17+
$ export HTTPS_PROXY=socks5://127.0.0.1:1122 # optionally
1118
$ terraform init
1219
```
1320
* Import existing configuration (optionally; only first time)

0 commit comments

Comments
 (0)