Move tf-init.sh to bin directory

This commit is contained in:
Jeremy Dormitzer 2020-12-04 14:15:35 -05:00
parent 450800c11d
commit 88e5dde425
2 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
This repository contains the configuration files and scripts to support the infrastructure I use for personal projects.
## Terraform environment variables and config
Terraform state is stored in a DigitalOcean Spaces bucket. In order to access the bucket, the Terraform backend configuration needs the `access_key` and `secret_key` variables set. These variables are the DigitalOcean Spaces access key and secret key, respectively, which are generated from the DigitalOcean Spaces UI. I'm passing them to Terraform via the `-backend-config` `terraform init` option and pulling their values from my password manager. This operation is encapsulated in the `tf-init.sh` script.
Terraform state is stored in a DigitalOcean Spaces bucket. In order to access the bucket, the Terraform backend configuration needs the `access_key` and `secret_key` variables set. These variables are the DigitalOcean Spaces access key and secret key, respectively, which are generated from the DigitalOcean Spaces UI. I'm passing them to Terraform via the `-backend-config` `terraform init` option and pulling their values from my password manager. This operation is encapsulated in the `bin/tf-init.sh` script.
The Terraform scripts also require some environment variables set: