- Complete CloudFront distribution setup with origin.servidor.it.com - WAF v2 integration for security protection - S3 backend for Terraform state management - CloudFront logging to S3 - HTTP-only origin protocol configuration (resolves 504 Gateway Timeout) - Comprehensive documentation with deployment guide 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
496 B
HCL
15 lines
496 B
HCL
# S3 Backend Configuration for Terraform State
|
|
# This file configures remote state storage in S3 with DynamoDB for state locking
|
|
|
|
terraform {
|
|
backend "s3" {
|
|
bucket = "aws-cf-terraform-state-535294143817"
|
|
key = "aws-cf/terraform.tfstate"
|
|
region = "us-east-1"
|
|
encrypt = true
|
|
# dynamodb_table = "terraform-state-lock" # Disabled due to permission issues
|
|
|
|
# Optional: Add versioning for state file history
|
|
# versioning = true
|
|
}
|
|
} |