Skip to content

Commit 9a0e3dd

Browse files
committed
build: use mise to set up Terraform locally
Generated with: $ cd infra/terraform $ mise set --file mise.local.toml https_proxy=socks5://127.0.0.1:1122 $ MISE_DISABLE_BACKENDS=aqua mise use [email protected] See also: - jdx/mise#4606 - https://mise.jdx.dev/faq.html#how-do-i-use-mise-with-http-proxies NOTE: proxy configuration has been moved to a local mise configuration that hasn't been commited to Git as it's needed only for my local installation. Part of #1748
1 parent b764d2f commit 9a0e3dd

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ prod_vars.yml
5757
# and also creates molecule directory
5858
*.pyc
5959
molecule/
60+
61+
mise.local.toml

infra/terraform/README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
@todo #1720 Terraform: automate import of the existing resources
55
-->
66

7-
* Install [tfenv](https://github.com/tfutils/tfenv) and terraform
7+
* Install Terraform
8+
* the preferred way is to use [`mise`](https://mise.jdx.dev/getting-started.html). After its activation,
9+
Terraform will be installed automatically once you `cd` into the `infra/terraform` directory
10+
* Navigate to the directory with Terraform configuration
811
```console
9-
$ brew install tfenv
1012
$ cd infra/terraform
11-
$ export HTTPS_PROXY=socks5://127.0.0.1:1122 # optionally
12-
$ tfenv install
1313
```
1414
* Setup credentials (only first time)
1515
```console
@@ -18,7 +18,6 @@
1818
```
1919
* Initialize and download modules (if needed)
2020
```console
21-
$ export HTTPS_PROXY=socks5://127.0.0.1:1122 # optionally
2221
$ terraform init
2322
```
2423
* Import existing DigitalOcean configuration (optionally; only the first time)

infra/terraform/mise.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tools]
2+
terraform = "1.11.1"

0 commit comments

Comments
 (0)