AWS CloudFront Deployment
This module creates an AWS CloudFront deployment by creating an S3 Bucket and CloudFront distribution. The S3 Bucket created is used as the CloudFront origin.
Requirements
| Name |
Version |
| terraform |
~> 0.12.29 |
| aws |
~> 2.53 |
| template |
~> 2.1 |
Providers
Inputs
| Name |
Description |
Type |
Default |
Required |
| acm_certificate_arn |
ARN of the corresponding ACM SSL to use with this deployment. |
string |
n/a |
yes |
| dns_names |
DNS names to associate with this deployment |
list(string) |
n/a |
yes |
| dns_zone |
Name of the DNS zone to use with this deployment. |
string |
n/a |
yes |
| environment_name |
Name of environment. |
string |
n/a |
yes |
| name |
Name of this deployment. |
string |
n/a |
yes |
| namespace |
Determines naming convention of assets. Generally follows DNS naming convention. |
string |
n/a |
yes |
| s3_bucket |
S3 Bucket name that will be created for this deployment. |
string |
n/a |
yes |
| tags |
A mapping of tags to assign to the AWS resources. |
map(string) |
n/a |
yes |
| cors_rule |
CORS rule to apply to s3 bucket |
list(object({ allowed_headers = list(string) allowed_methods = list(string) allowed_origins = list(string) expose_headers = list(string) max_age_seconds = number })) |
[] |
no |
| is_ipv6_enabled |
(Optional) - Whether the IPv6 is enabled for the distribution. |
bool |
true |
no |
| private_dns |
If true, this module will create Route53 DNS records in a private zone |
bool |
false |
no |
| use_external_dns |
If true, this module will not create any Route53 DNS records. |
bool |
false |
no |
| web_acl_id |
(Optional) - If you're using AWS WAF to filter CloudFront requests, the Id of the AWS WAF web ACL that is associated with the distribution. |
string |
null |
no |
| whitelisted_headers |
List of whitelisted headers for this CloudFront distribution. |
list(string) |
[ "Origin" ] |
no |
Outputs
| Name |
Description |
| cloudfront_domain_name |
n/a |
| cloudfront_id |
n/a |
| s3_bucket_name |
n/a |