This repository describe the needed infrastructure to operate Lightsoff product.
The infrastructure is managed by Terraform. The state is stored on S3.
- An existing S3 bucket.
- Copy environment file:
cp .env.template .env
- Replace environment variables with yours
- Source it:
source .env
- Init terraform workdir:
terraform init -backend-config="bucket=$S3_BUCKET" -backend-config="region=$S3_REGION"
- Create new workspace
terraform workspace new <your-workspace>
- Plan, apply as usual