Name | Version |
---|---|
aws | ~> 2.47 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
acm_certificate_arn | Existing ACM Certificate ARN | string |
"" |
no |
aliases | List of FQDN's - Used to set the Alternate Domain Names (CNAMEs) setting on Cloudfront. | list(string) |
[] |
no |
comment | Any comment about the CloudFront Distribution | string |
"Built by Terraform" |
no |
dynamic_custom_origin_config | Configuration for the custom origin config to be used in dynamic block | any |
[] |
no |
dynamic_default_cache_behavior | Default Cache Behviors to be used in dynamic block | any |
n/a | yes |
dynamic_ordered_cache_behavior | Ordered Cache Behaviors to be used in dynamic block | any |
[] |
no |
dynamic_s3_origin_config | Configuration for the s3 origin config to be used in dynamic block | list(map(string)) |
[] |
no |
env_name | The name of the env | string |
n/a | yes |
geo_restriction_locations | List of country codes for which CloudFront either to distribute content (whitelist) or not distribute your content (blacklist) | list(string) |
[] |
no |
geo_restriction_type | Method that use to restrict distribution of your content by country: none , whitelist , or blacklist |
string |
"none" |
no |
ipv6_enabled | Set to true to enable an AAAA DNS record to be set as well as the A record | bool |
true |
no |
log_expiration_days | Number of days after which to expunge the objects | number |
90 |
no |
log_include_cookies | Include cookies in access logs | bool |
false |
no |
log_prefix | Path of logs in S3 bucket | string |
"" |
no |
logging_enabled | When true, access logs will be sent to a newly created s3 bucket | bool |
true |
no |
minimum_protocol_version | Cloudfront TLS minimum protocol version | string |
"TLSv1.1" |
no |
name | Name of the deploy(e.g. main or app) | string |
n/a | yes |
price_class | Price class for this distribution: PriceClass_All , PriceClass_200 , PriceClass_100 |
string |
"PriceClass_100" |
no |
retain_on_delete | (Optional) - Disables the distribution instead of deleting it when destroying the resource through Terraform | bool |
false |
no |
s3_logs_acl | The canned ACL to apply. We recommend log-delivery-write for compatibility with AWS services | string |
"log-delivery-write" |
no |
s3_logs_policy | A valid bucket policy JSON document. Note that if the policy document is not specific enough (but still valid), Terraform may view the policy as constantly changing in a terraform plan. In this case, please make sure you use the verbose/specific version of the policy | string |
"" |
no |
s3_logs_region | If specified, the AWS region this bucket should reside in. Otherwise, the region used by the callee | string |
"" |
no |
wait_for_deployment | If enabled, the resource will wait for the distribution status to change from InProgress to Deployed. Setting this tofalse will skip the process. | bool |
true |
no |
Name | Description |
---|---|
cloudfront_arn | ARN of AWS CloudFront distribution |
cloudfront_domain_name | Domain name corresponding to the distribution |
cloudfront_etag | Current version of the distribution's information |
cloudfront_hosted_zone_id | CloudFront Route 53 zone ID |
cloudfront_id | ID of AWS CloudFront distribution |
cloudfront_status | Current status of the distribution |
cloudfront_viewer_certificate | CloudFront viewer certificate of the distribution |