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.
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"
}
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 |
MIT