generated from burib/terraform-aws-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
32 lines (27 loc) · 908 Bytes
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
output "region" {
value = local.region
description = "AWS Region code where this stack has been deployed to."
}
output "account_id" {
value = local.account_id
description = "AWS Account ID where this stack has been deployed to."
}
output "cloudfront_distribution_id" {
value = aws_cloudfront_distribution.website.id
description = "The ID of the CloudFront distribution"
}
output "website_url" {
value = "https://${var.domain_name}"
description = "The URL of the website"
}
output "s3_bucket_name" {
value = aws_s3_bucket.website.id
description = "The name of the S3 bucket"
}
output "domain_records_created" {
value = {
a_record = aws_route53_record.website.name
aaaa_record = aws_route53_record.website_ipv6.name
www_records = var.redirect_www_to_https ? [aws_route53_record.www[0].name, aws_route53_record.www_ipv6[0].name] : []
}
}