An open API service indexing awesome lists of open source software.

https://github.com/mediapop/terraform-aws-redirect

Auto provision HTTPS and IPv6 301 redirects over a batch of hosts.
https://github.com/mediapop/terraform-aws-redirect

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Terraform Redirect

*This terraform module is maintained by [Media Pop](https://www.mediapop.co), 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:

```hcl
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