patheard / aws-static-redirect

301 redirect a domain using CloudFront and Lambda.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS static redirect

Use CloudFront and a Lambda function to 301 redirect requests from one domain to another. This is useful when you don't control the target domain since it means you don't have to worry about certificate validation errors.

# Init, plan and apply
cd aws/redirect
terraform init
terraform plan
terraform apply

About

301 redirect a domain using CloudFront and Lambda.

License:MIT License


Languages

Language:HCL 94.2%Language:Shell 5.8%