Skip to content

Smartbrood/terraform-aws-cloudfront

Repository files navigation

terraform-aws-cloudfront

Terraform module to create CloudFront Distribution

Providers

Name Version
aws >= 3.74.3

Resources

Name Type
aws_cloudfront_distribution.this resource
aws_cloudfront_monitoring_subscription.this resource
aws_cloudfront_origin_access_control.this resource
aws_cloudfront_origin_access_identity.this resource

Inputs

Name Description Type Default Required
acm_domain n/a string n/a yes
logging_bucket n/a string n/a yes
logging_prefix n/a string n/a yes
name n/a string n/a yes
origin_bucket n/a string n/a yes
aliases n/a set(string)
[
"mysite.example.com",
"yoursite.example.com"
]
no
allowed_methods n/a set(string)
[
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"PATCH",
"POST",
"PUT"
]
no
cached_methods n/a set(string)
[
"GET",
"HEAD"
]
no
comment n/a string "CloudFront distribution created with module Smartbrood/cloudfront/aws." no
default_root_object n/a string "index.html" no
default_ttl n/a number 86400 no
enabled n/a bool true no
is_ipv6_enabled n/a bool true no
logging_include_cookies n/a bool false no
max_ttl n/a number 31536000 no
min_ttl n/a number 0 no
minimum_protocol_version n/a string "TLSv1.2_2021" no
price_class n/a string "PriceClass_100" no
realtime_metrics_subscription_status n/a string "Enabled" no
retain_on_delete n/a bool false no
signing_behavior n/a string "always" no
staging n/a bool false no
tags Map of tags to assign to the certificate resource. map(any) {} no
viewer_protocol_policy n/a string "https-only" no
wait_for_deployment n/a bool true no

Outputs

Name Description
arn ARN
id ID
status Status