From e62e63739e85981ee8697706790ef40595c4c857 Mon Sep 17 00:00:00 2001 From: "Sven (AAMOS AI)" Date: Tue, 11 Aug 2026 21:35:46 +0700 Subject: [PATCH] infra: add terraform outputs --- infrastructure/terraform/outputs.tf | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 infrastructure/terraform/outputs.tf diff --git a/infrastructure/terraform/outputs.tf b/infrastructure/terraform/outputs.tf new file mode 100644 index 0000000..49a15fc --- /dev/null +++ b/infrastructure/terraform/outputs.tf @@ -0,0 +1,47 @@ +output "app_public_ip" { + description = "Elastic IP for the application server" + value = aws_eip.app.public_ip +} + +output "rds_endpoint" { + description = "RDS PostgreSQL endpoint" + value = aws_db_instance.main.endpoint +} + +output "production_bucket" { + description = "Production S3 bucket" + value = aws_s3_bucket.production.bucket +} + +output "web_bucket" { + description = "Web/static S3 bucket" + value = aws_s3_bucket.web.bucket +} + +output "cloudfront_domain" { + description = "CloudFront distribution domain name" + value = aws_cloudfront_distribution.main.domain_name +} + +output "name_servers" { + description = "Route53 name servers for cibello.app" + value = aws_route53_zone.main.name_servers +} + +output "ses_dkim_records" { + description = "SES DKIM CNAME records" + value = [ + for i in range(3) : { + name = aws_route53_record.ses_dkim[i].name + value = aws_route53_record.ses_dkim[i].records[0] + } + ] +} + +output "ses_verification_record" { + description = "SES domain verification TXT record" + value = { + name = aws_route53_record.ses_verification.name + value = aws_route53_record.ses_verification.records[0] + } +}