This repository contains the base infrastructure for a serverless application using Terraform.
- Terraform installed
- Change directory to
live/[stage]/tfstate
- Customize
terraform.tfvars
file i - Create the state by running the following commands:
terraform init terraform plan terraform apply
- Uncomment the resource
backend s3
fromconfig.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.tfvars
file - Copy template file from
resources/example/[stack]
dir toresources
dir (remove.example
from the file name) - Create the pipeline by running the following commands:
terraform init terraform plan terraform apply