aws-cloudfront-router

Adaptavist/aws-cloudfront-router/module

Terraform Module HCL MODULE
Install
module "aws-cloudfront-router" {
source = "Adaptavist/aws-cloudfront-router/module"
version = "1.3.0"
}
plain text: /constructs/tfmod-adaptavist-aws-cloudfront-router-module/install.txt
⭐ Source on GitHub 📦 Registry page
README

module-aws-cloudfront-router A module which creates a CloudFront distribution which is used for routing requests to backend origins based on paths. The requests are not cached. Variables | Name | Description | Type | Default | Required | |------|-------------|------|---------|:-----:| | acm\_cert\_arn | AWS ACM certificate ARN to use for the CloudFront distribution. | string | n/a | yes | | aliases | Aliases used by the CloudFront distribution. | list(string) | n/a | no | | default\_cache\_behavior | Default behaviour of the disctrobution when a path has not been matched | object({ origin_id = string domain_name = string allowed_methods = list(string) }) | n/a | yes | | default\_root\_object | Default root object for the CloudFront distribution, this defaults to 'index.html'. | string | "i

Inputs (17)
NameTypeDescriptionDefault
acm_cert_arnstringAWS ACM certificate ARN to use for the CloudFront distribution. required
stagestringThe stage of the distribution - (dev, staging etc). required
domainstringDomain name to use for the CloudFront distribution. required
namespacestringThe namespace of the distribution. required
origin_mappingsmap(object({ origin_id Origin mappings, origins are matched based on path required
r53_zone_namestringName of the public hosted zone, this is used for creating the A record for the C required
namestringThe name of the distribution. required
tagsmap(any)Tags applied to the distribution, these should follow what is defined [here](htt required
default_cache_behaviorobject({ origin_id =Default behaviour of the disctrobution when a path has not been matched required
viewer_protocol_policystringDefault viewer_protocol_policy for the CloudFront distribution, this defaults to"redirect-to-https"
aliaseslist(string)Aliases used by the CloudFront distribution. If none are set the supplied domain[]
enable_access_logsboolShould accesses to the CloudFront distribution be logged, defaults to false.false
log_cookiesboolIf access logs are enabled, are cookies logged.false
access_logs_bucketstringIf access logs are enabled the bucket the logs should go into, defaults to false""
default_root_objectstringDefault root object for the CloudFront distribution, this defaults to 'index.htm"index.html"
origin_protocol_policystringDefault origin_protocol_policy for the CloudFront distribution, this defaults to"https-only"
forward_allboolWhen enabled, forwards cookies, query strings and headers to originstrue
Outputs (6)
cf_id — ID of AWS CloudFront distribution
cf_arn — ARN of AWS CloudFront distribution
cf_status — Current status of the distribution
cf_domain_name — Domain name corresponding to the distribution
cf_etag — Current version of the distribution's information
cf_hosted_zone_id — CloudFront Route 53 zone ID
Resources (2)
aws_cloudfront_distributionaws_route53_record
Details
FrameworkTerraform Module
LanguageHCL
Version1.3.0
Cloud MODULE
★ Stars0
Forks2
Total downloads1.5k
Inputs17
Outputs6
Resources2
LicenseApache-2.0
NamespaceAdaptavist
Updated