This repository contains the base infrastructure for a serverless application using Terraform.
- Terraform installed
- Change directory to
live/[stage]/tfstate - Customize
terraform.tfvarsfile i - Create the state by running the following commands:
terraform init terraform plan terraform apply
- Uncomment the resource
backend s3fromconfig.tf - In order to change the state from local to S3, run the following commands:
terraform init
- Change directory to
live/[stage]/pipeline - Customize
terraform.tfvarsfile - Copy template file from
resources/example/[stack]dir toresourcesdir (remove.examplefrom the file name) - Create the pipeline by running the following commands:
terraform init terraform plan terraform apply