71be2abd2e
- Terraform modules: VPC, EC2, RDS, S3, CloudFront, Route53, Lambda, IAM, Security Groups - Ansible playbooks for server configuration - Scripts: create-test-environment.sh, destroy-test-environment.sh, validate-environment.sh - Documentation: README, QUICKSTART, AGENTS - Jenkins pipeline for automated deployment - Jenkins pipeline for environment destruction
32 lines
921 B
HCL
32 lines
921 B
HCL
# Variables de entorno para PRODUCCION
|
|
# ====================================
|
|
# Archivo: environments/prod/terraform.tfvars
|
|
|
|
environment = "prod"
|
|
aws_region = "mx-central-1"
|
|
|
|
# VPC - Igual a produccion actual
|
|
vpc_cidr = "10.2.0.0/16"
|
|
availability_zones = ["mx-central-1a", "mx-central-1b"]
|
|
|
|
# EC2
|
|
ami_id = "ami-0f553e2869648134e" # Ubuntu 22.04 LTS
|
|
instance_type = "t3.small"
|
|
key_name = "sacc4-prod-key"
|
|
|
|
# IP restringida (solo VPN u oficina)
|
|
my_ip = "TU_IP_O_VPN_AQUI/32"
|
|
|
|
# RDS
|
|
db_name = "sacc4_prod"
|
|
db_username = "sacc4_admin"
|
|
db_password = "PasswordSeguraProduccion123!"
|
|
rds_instance_class = "db.t3.micro"
|
|
rds_allocated_storage = 20
|
|
|
|
# S3 / CloudFront / Route53
|
|
s3_bucket_name = "sacc4-frontend-prod-ccsoft"
|
|
domain_name = "prod-sacc.ccsoft.mx"
|
|
|
|
# Certificado SSL (ARN real de ACM)
|
|
certificate_arn = "arn:aws:acm:mx-central-1:523761210517:certificate/EXISTENTE" |