Skip to content

Appends index.html to requests that don’t include a file name or extension in the URL

License

Notifications You must be signed in to change notification settings

Lupus-Metallum/terraform-aws-cloudfront-add-index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

terraform-aws-cloudfront-add-index

A quick Lambda@edge function to allow CloudFront static sites to accept URL's without a filename such as https://example.com/test and append /index.html to allow CloudFront to locate the correct S3 object.

Example

module "append_index" {
  source             = "Lupus-Metallum/cloudfront-add-index/aws"
  version            = "1.0.0"
  name               = "example"
  description        = "example description"
}

Providers

Name Version
aws n/a

Resources

Name Type
aws_cloudfront_function.this resource

Inputs

Name Description Type Default Required
name Name to use for resource names created by this module string n/a yes
description Description to use for resource description created by this module string "Adds index.html or /index.html if needed to request URLs" no

Outputs

Name Description
arn n/a

About

Appends index.html to requests that don’t include a file name or extension in the URL

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published