Skip to content

mediapop/terraform-aws-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Redirect

This terraform module is maintained by Media Pop, a software consultancy. Hire us to solve your DevOps challenges.

Set up a permanent redirect with HTTPS and IPv6 across a batch of domains.

Usage

You can specify as many zones and records as you wish following this simple format:

module "redirect" {
  source = "mediapop/redirect/aws"

  domains = {
    "mediapop.co."     = ["www.mediapop.co"]
    "mediapopinc.com." = ["mediapopinc.com", "www.mediapopinc.com"]
  }

  redirect_to = "mediapop.co"
}

Inputs

Name Description Type Required
domains Map of hostname records to redirect from, with the zones as the keys. map(list(string)) yes
redirect_to The target hostname string yes

License

MIT

About

Auto provision HTTPS and IPv6 301 redirects over a batch of hosts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages