2023-05-29 15:10:50 +02:00
|
|
|
export TF_VAR_hetzner_token := `pass hetzner.com/tokens/suricata`
|
2023-06-04 18:45:08 +02:00
|
|
|
export TF_VAR_pg_passwd := `pass pg.monotremata.xyz/terraform`
|
2023-05-23 12:50:26 +02:00
|
|
|
|
2023-07-03 16:58:38 +02:00
|
|
|
export LINODE_TOKEN := `pass linode.com/token`
|
|
|
|
export VULTR_API_KEY := `pass vultr.com/api_key`
|
|
|
|
export HETZNER_DNS_API_TOKEN := `pass hetzner.com/tokens/terraform`
|
|
|
|
|
2023-07-03 11:36:57 +02:00
|
|
|
minio_access_key := `pass minio.monotremata.xyz/terraform/access_key`
|
|
|
|
minio_secret_key := `pass minio.monotremata.xyz/terraform/secret_key`
|
|
|
|
|
2023-05-23 12:50:26 +02:00
|
|
|
init:
|
2023-07-03 16:58:38 +02:00
|
|
|
terraform init \
|
|
|
|
-backend-config="access_key={{minio_access_key}}" \
|
|
|
|
-backend-config="secret_key={{minio_secret_key}}"
|
2023-05-23 12:50:26 +02:00
|
|
|
|
|
|
|
plan *ARGS:
|
|
|
|
terraform plan {{ARGS}}
|
|
|
|
|
|
|
|
apply *ARGS:
|
|
|
|
terraform apply {{ARGS}}
|
|
|
|
|
2023-05-25 12:50:26 +02:00
|
|
|
terraform *ARGS:
|
|
|
|
terraform {{ARGS}}
|