This repo contains the Infrastructure-as-Code that manages my personal infrastructure using
terraform
. It currently manages:
Web pages are hosted on Fly:
The .env
file should be created at the root of the repository in the following form:
# Access key for the Azure Storage Account storing the Terraform state
ARM_ACCESS_KEY="deadbeef"
TF_VAR_do_token="deadbeef"
To build the infrastructure with Terraform:
$ git clone https://github.com/jnsgruk/infra
$ cd infra
# Export the variables from the env file
$ export $(grep -v "#" .env | xargs)
# Initialise Terraform
$ terraform init
# Deploy the infrastructure
$ terraform apply