Skip to content

jnsgruk/infra

Repository files navigation

Personal Infrastructure

This repo contains the Infrastructure-as-Code that manages my personal infrastructure using terraform. It currently manages:

Web pages are hosted on Fly:

Getting Started

Creating the dotenv file

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"

Provisioning the Infrastructure

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