Commit 3ca83273 authored by Denis Policastro's avatar Denis Policastro Committed by GitHub

fix: Key `host_name` on website routing rules redirect (#152)

parent 23f06b34
...@@ -129,7 +129,7 @@ resource "aws_s3_bucket_website_configuration" "this" { ...@@ -129,7 +129,7 @@ resource "aws_s3_bucket_website_configuration" "this" {
} }
redirect { redirect {
host_name = try(routing_rule.value.redirect["hostname"], null) host_name = try(routing_rule.value.redirect["host_name"], null)
http_redirect_code = try(routing_rule.value.redirect["http_redirect_code"], null) http_redirect_code = try(routing_rule.value.redirect["http_redirect_code"], null)
protocol = try(routing_rule.value.redirect["protocol"], null) protocol = try(routing_rule.value.redirect["protocol"], null)
replace_key_prefix_with = try(routing_rule.value.redirect["replace_key_prefix_with"], null) replace_key_prefix_with = try(routing_rule.value.redirect["replace_key_prefix_with"], null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment