-
Notifications
You must be signed in to change notification settings - Fork 681
/
Copy pathoutputs.tf
31 lines (25 loc) · 823 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
# Output variable definitions
output "name" {
description = "Name (id) of the bucket"
value = aws_s3_bucket.mywebsite.id
}
output "arn" {
description = "ARN of the S3 Bucket"
value = aws_s3_bucket.mywebsite.arn
}
output "bucket_domain_name" {
description = "Bucket Domain Name of the S3 Bucket"
value = aws_s3_bucket.mywebsite.bucket_domain_name
}
output "bucket_regional_domain_name" {
description = "Regional Domain Name of the S3 Bucket"
value = aws_s3_bucket.mywebsite.bucket_regional_domain_name
}
output "bucket_region" {
description = "S3 Bucket Region"
value = aws_s3_bucket.mywebsite.region
}
# Static Website URL
output "static_website_url" {
value = "http://${aws_s3_bucket.mywebsite.bucket}.s3-website.${aws_s3_bucket.mywebsite.region}.amazonaws.com"
}