Lupus-Metallum / terraform-aws-cloudfront-lambda-redirect

Redirect domain to another url with a 301 or 302 redirect
https://registry.terraform.io/modules/Lupus-Metallum/cloudfront-lambda-redirect/aws/latest
Apache License 2.0
1 stars 1 forks source link

Why is a S3 Bucket Required #1

Open kzap opened 4 months ago

kzap commented 4 months ago

Hi @skyfox675 , was reading through this Terraform module and wondering why a S3 Bucket was needed when the goal is a 301 redirect via a Cloudfront function. Does Cloudfront not do the redirect if there is no Origin?

skyfox675 commented 3 months ago

Hi @kzap, at the time of first writing this, at least one origin was required, so the S3 bucket is really just a placeholder