48 lines
1.2 KiB
Terraform
48 lines
1.2 KiB
Terraform
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 = tolist(aws_route53_record.ses_verification.records)[0]
|
|
}
|
|
}
|