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:
kappa
2025-09-09 09:08:17 +09:00
commit 210c454359
12 changed files with 1386 additions and 0 deletions

15
backend.tf Normal file
View 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
}
}