Skip to content

Module to create a cloudfront distribution adhering to reasonable aws standards.

License

Notifications You must be signed in to change notification settings

flagscript/terraform-aws-flagscript-cloudfront-distribution

Repository files navigation

Requirements

Name Version
terraform ~> 1.6
aws ~> 5.0

Providers

Name Version
aws ~> 5.0

Modules

Name Source Version
distribution_bucket flagscript/flagscript-s3-bucket/aws 2.0.0
distribution_bucket_policy flagscript/flagscript-s3-bucket/aws//modules/cloudfront-policy 2.0.0

Resources

Name Type
aws_acm_certificate.distribution_certificate resource
aws_cloudfront_distribution.cloudfront_distribution resource
aws_cloudfront_origin_access_control.origin_access_control resource

Inputs

Name Description Type Default Required
cache_policy_id Id of the cache policy to use for the distributions default cache policy. string n/a yes
default_root_object Object that you want CloudFront to return (for example, index.html) when an end user requests the root URL. string "index.html" no
domain The domain of the cloudfront distribution string n/a yes

Outputs

Name Description
acm_certificate_arn ARN of the certificate.
acm_domain_validation_options Set of domain validation objects which can be used to complete certificate validation.
distribution_arn ARN for the distribution.
distribution_bucket_arn Arn of the distribution bucket.
distribution_bucket_name Name of the distribution bucket.
distribution_domain_name Domain name corresponding to the distribution.
distribution_hosted_zone_id CloudFront Route 53 zone ID that can be used to route an Alias Resource Record Set to.
distribution_id Identifier for the distribution.

About

Module to create a cloudfront distribution adhering to reasonable aws standards.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages