30 lines
825 B
Text
30 lines
825 B
Text
# Terraform Backend Configuration
|
|
# This file configures remote state storage for CI/CD deployments
|
|
#
|
|
# For local development, comment out the backend block in main.tf
|
|
# For CI/CD, use Terraform Cloud or S3 backend
|
|
|
|
# Option 1: Terraform Cloud (Recommended for teams)
|
|
# terraform {
|
|
# cloud {
|
|
# organization = "your-org"
|
|
# workspaces {
|
|
# name = "glam-infrastructure"
|
|
# }
|
|
# }
|
|
# }
|
|
|
|
# Option 2: S3 Backend (AWS)
|
|
# terraform {
|
|
# backend "s3" {
|
|
# bucket = "glam-terraform-state"
|
|
# key = "hetzner/terraform.tfstate"
|
|
# region = "eu-central-1"
|
|
# encrypt = true
|
|
# dynamodb_table = "glam-terraform-locks"
|
|
# }
|
|
# }
|
|
|
|
# Option 3: Local Backend (Development only)
|
|
# State is stored locally in terraform.tfstate
|
|
# This is the default if no backend is configured
|