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.
- Host: GitHub
- URL: https://github.com/mediapop/terraform-aws-redirect
- Owner: mediapop
- License: mit
- Created: 2018-06-01T01:43:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-09T19:20:20.000Z (over 4 years ago)
- Last Synced: 2025-01-24T08:11:40.668Z (4 months ago)
- Language: HCL
- Size: 9.77 KB
- Stars: 0
- Watchers: 9
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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