Skip to content

Commit

Permalink
Merge pull request #31 from chris-qa-org/output-cloudfront-distributi…
Browse files Browse the repository at this point in the history
…on-attributes

Output CloudFront distribution attributes
  • Loading branch information
Stretch96 authored May 28, 2022
2 parents 81a91fc + e029013 commit 9abd4d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ Terraform module to host a static site generated by Publii
| Name | Description |
|------|-------------|
| <a name="output_aws_acm_certificate_cloudfront_frontend"></a> [aws\_acm\_certificate\_cloudfront\_frontend](#output\_aws\_acm\_certificate\_cloudfront\_frontend) | CloudFront frontend's ACM TLS certificate attributes |
| <a name="output_aws_cloudfront_distribution_frontend"></a> [aws\_cloudfront\_distribution\_frontend](#output\_aws\_cloudfront\_distribution\_frontend) | CloudFront distribution frontend attributes |
| <a name="output_aws_cloudfront_distribution_frontend_www_redirect"></a> [aws\_cloudfront\_distribution\_frontend\_www\_redirect](#output\_aws\_cloudfront\_distribution\_frontend\_www\_redirect) | CloudFront distribution frontend www redirect attributes |
| <a name="output_aws_cloudfront_origin_access_identity_frontend"></a> [aws\_cloudfront\_origin\_access\_identity\_frontend](#output\_aws\_cloudfront\_origin\_access\_identity\_frontend) | CloudFront frontend's associated origin access identity |
| <a name="output_iam_user_publii_s3_frontend"></a> [iam\_user\_publii\_s3\_frontend](#output\_iam\_user\_publii\_s3\_frontend) | IAM User attributes for Publii S3 bucket |
| <a name="output_project_name"></a> [project\_name](#output\_project\_name) | Project name. Generated from the site\_url and project\_random\_id |
Expand Down
10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,13 @@ output "aws_cloudfront_origin_access_identity_frontend" {
description = "CloudFront frontend's associated origin access identity"
value = aws_cloudfront_origin_access_identity.frontend
}

output "aws_cloudfront_distribution_frontend" {
description = "CloudFront distribution frontend attributes"
value = aws_cloudfront_distribution.frontend
}

output "aws_cloudfront_distribution_frontend_www_redirect" {
description = "CloudFront distribution frontend www redirect attributes"
value = local.cloudfront_enable_apex_to_www_redirect ? aws_cloudfront_distribution.frontend_www_redirect.0 : null
}

0 comments on commit 9abd4d6

Please sign in to comment.