terraform/justfile

24 lines
685 B
Plaintext
Raw Permalink Normal View History

2023-06-04 18:45:08 +02:00
export TF_VAR_pg_passwd := `pass pg.monotremata.xyz/terraform`
2023-07-04 14:21:55 +02:00
export TF_VAR_minio_root_user := "rilla"
export TF_VAR_minio_root_password := `pass minio.monotremata.xyz/rilla`
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-04 16:31:41 +02:00
export MINIO_PASSWORD := `pass minio.monotremata.xyz/terraform`
2023-07-05 12:43:44 +02:00
init *ARGS:
2023-07-03 16:58:38 +02:00
terraform init \
2023-07-04 16:31:41 +02:00
-backend-config="access_key=terraform" \
2023-07-05 12:43:44 +02:00
-backend-config="secret_key=$MINIO_PASSWORD" \
{{ARGS}}
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}}