cloudfront

anttiviljami/cloudfront/protected

Terraform Module HCL PROTECTED

Terraform module to create a CloudFront distribution with HTTPS and IP protection

Install
module "cloudfront" {
source = "anttiviljami/cloudfront/protected"
version = "1.1.2"
}
plain text: /constructs/tfmod-anttiviljami-cloudfront-protected/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-protected-cloudfront ![CI](https://github.com/anttiviljami/terraform-protected-cloudfront/actions?query=workflow%3ACI) ![License](https://github.com/anttiviljami/terraform-protected-cloudfront/blob/master/LICENSE) !Version Terraform module to create a CloudFront distribution with HTTPS and IP protection adhering to AWS best practices. This module creates: - Cloudfront Distribution - Fully configurable default origin - TLS with existing ACM Certificate - Private S3 bucket served under /static - WAF Web ACL for IP protection - Route53 HostedZone + ALIAS records for configured domains Usage ``hcl module "protected_cloudfront" { source "git::https://github.com/anttiviljami/terraform-protected-cloudfront.git?ref=tags/1.1.2" name = "my-protected-app" root_domain = "terraform.viljami.io

Inputs (12)
NameTypeDescriptionDefault
namestringDistribution name required
forwarded_headerslist(string)Headers to forward to default origin[ "Authorization", "Referrer" ]
static_pathstringThe root path of the static endpoint"/static"
root_domainstringRoot domain for Route53 Hosted Zone in FQDN format""
subdomainslist(string)Subdomains associated with ACM certificate in FQDN format[]
default_originobject({ domain_name = strThe default distribution behaviour{ "custom_origin_config": { "http_
allowlist_ipv6list(string)IPv6 CIDR ranges allowed to access the distribution[]
tagsmap(string)Tags to assign to resources{}
acm_certificate_arnstringACM Certificate ARN for HTTPS""
allowlist_ipv4list(string)IPv4 CIDR ranges allowed to access the distribution[]
minimum_tls_versionstringThe minimum TLS version supported for viewers"TLSv1.1_2016"
price_classstringThe price class of the CloudFront distribution"PriceClass_100"
Outputs (5)
static_bucket — Name of S3 bucket serving /static
static_bucket_arn — ARN of S3 bucket serving /static
distribution_arn — CloudFront Distribution ARN
distribution_id — CloudFront Distribution ID
distribution_domain_name — CloudFront Distribution Domain Name
Resources (9)
aws_cloudfront_distributionaws_cloudfront_origin_access_identityaws_route53_recordaws_route53_zoneaws_s3_bucketaws_s3_bucket_policyaws_waf_ipsetaws_waf_ruleaws_waf_web_acl
Details
FrameworkTerraform Module
LanguageHCL
Version1.1.2
Cloud PROTECTED
★ Stars2
Forks0
Total downloads781
Inputs12
Outputs5
Resources9
Examples1
LicenseApache-2.0
Namespaceanttiviljami
Updated