diff --git a/outputs.tf b/outputs.tf new file mode 100644 index 0000000..70a214d --- /dev/null +++ b/outputs.tf @@ -0,0 +1,30 @@ +output "cloudfront_distribution_id" { + value = aws_cloudfront_distribution.website_distribution.id + description = "The ID of the Cloudfront distribution." +} + +output "cloudfront_distribution_domain_name" { + value = aws_cloudfront_distribution.website_distribution.domain_name + description = "The domain name of the Cloudfront distribution." +} + +output "lambda_function_name" { + value = aws_lambda_function.rotate_custom_header_lambda.function_name + description = "The name of the lambda function that rotates the secret string." +} + +output "primary_bucket_arn" { + value = aws_s3_bucket.website.arn + description = "The arn of the primary website bucket." +} + +output "route53_zone_arn" { + value = aws_route53_zone.root_zone.arn + description = "The arn of the route53 hosted zone." +} + +output "acm_domain_names" { + value = aws_acm_certificate.certificate.domain_name + description = "The domain names that are associated to the ACM certificate." +} +