25 lines
888 B
HCL
25 lines
888 B
HCL
# Terraform Backend Configuration
|
|
# This file will be auto-generated by the bootstrap script
|
|
|
|
# The bootstrap script creates this backend configuration automatically
|
|
# to avoid the chicken-and-egg problem with Terraform state management.
|
|
#
|
|
# During pipeline execution:
|
|
# 1. bootstrap.sh creates S3 bucket and DynamoDB table
|
|
# 2. bootstrap.sh generates this backend configuration
|
|
# 3. terraform init uses the remote backend from the start
|
|
#
|
|
# This approach eliminates the need for state migration and
|
|
# follows enterprise best practices.
|
|
|
|
# Backend configuration will be inserted here by bootstrap.sh
|
|
# Example structure:
|
|
# terraform {
|
|
# backend "s3" {
|
|
# bucket = "project-terraform-state-xxxxxxxx"
|
|
# key = "foundation/terraform.tfstate"
|
|
# region = "us-east-1"
|
|
# dynamodb_table = "project-terraform-locks"
|
|
# encrypt = true
|
|
# }
|
|
# } |