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] + } +}