Initial commit: AWS CloudFront with OpenTofu infrastructure
- 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>
This commit is contained in:
15
backend.tf
Normal file
15
backend.tf
Normal file
@@ -0,0 +1,15 @@
|
||||
# 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user