Implements creates a simple http url forwarding redirect using a route 53 alias records and a s3 bucket.
This is the most simple method to create a HTTP redirect within AWS.
This module creates a S3 bucket and a Route 53 A record.
The S3 bucket is empty and has a website configuration which redirects all traffic to the target url.
The Route 53 A record will alias to the S3 endpoint.
module "redirect_technative_nl_techdd" {
source = "Technative-B-V/terraform-aws-route53-s3-http-redirect/aws"
version = "0.1.0"
zone_name = "example.com" # THIS ZONE SHOULD EXIST IN ROUTE53
domain_name = "sample-google-form.example.com"
redirect_target_url = "https://docs.google.com/forms/d/e/1FAIpQLSeI8_vYyaJgM7SJM4Y9AWfLq-tglWZh6yt7bEXEOJr_L-hV1A/viewform?formkey=dGx0b1ZrTnoyZDgtYXItMWVBdVlQQWc6MQ"
}
Name | Version |
---|---|
aws | >= 4.0.0 |
Name | Source | Version |
---|---|---|
route53_http_redirect_target_url | TechNative-B-V/url-parser/null | 0.1.1 |
Name | Type |
---|---|
aws_route53_record.domains | resource |
aws_s3_bucket.route53_http_redirect_bucket | resource |
aws_s3_bucket_website_configuration.route53_http_redirect_webconf | resource |
aws_route53_zone.route53_http_redirect_zone | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
domain_name | Domain to provide the redirect including subdomain if applicable | string |
n/a | yes |
redirect_target_url | Redirect target - should be a full URL. If http:// or https:// is excluded, the scheme of the request will be used | string |
n/a | yes |
zone_name | Domain name of the Route53 hosted zone | string |
n/a | yes |
No outputs.