- Use
backend_setup/
toterraform init
andterraform apply
(TF State for the backend is managed locally) - Above steps will create two separate AWS S3 buckets for TF State storage (development and production)
- Update the bucket name in the appropriate
backend.hcl
file: environments/<env>/backend.hcl
# Navigate to environments/<env>
terraform init -backend-config=backend.hcl
terrafrom validate
terraform plan
terrafrom apply