19 lines
673 B
HCL
19 lines
673 B
HCL
# --------------------------------------------------------------------
|
|
# Amazon S3 output
|
|
# --------------------------------------------------------------------
|
|
|
|
output "id" {
|
|
description = "The bucket domain name. Will be of format bucketname.s3.amazonaws.com."
|
|
value = aws_s3_bucket.this.id
|
|
}
|
|
|
|
output "arn" {
|
|
description = "The ARN of the bucket. Will be of format arn:aws:s3:::bucketname."
|
|
value = aws_s3_bucket.this.arn
|
|
}
|
|
|
|
output "website_endpoint" {
|
|
description = "The website endpoint, if the bucket is configured with a website. If not, this will be an empty string."
|
|
value = aws_s3_bucket_website_configuration.this.website_endpoint
|
|
}
|