Rename .env.example
into .env
Edit .env
to add your own keys
Change the default values for variables in variables.tf
-
cd terraform
-
export $(grep -v '^#' ../.env | xargs)
-
terraform init
-
terraform plan
-
terraform apply
Once you've tested locally
terraform destroy
Next you can create a Terraform Cloud project.
Connect the repo.
Add the .env variables in the project.
Set the terraform
working directory in the Terraform cloud workspace settings
Add:
-
S3_NAME
(Same value as invariables.tf
) to the public Github repo variables -
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
to the secret Github repo variables
Edit deploy.yml
to add your own custom build / lint / test phase.
KD20 © 2024 by Kévin DONIN DE ROSIERE is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/4.0/