variable "website" {
description = "Map containing static web-site hosting or redirect configuration."
default = {
index_document = "index.html"
error_document = "error.html"
routing_rules = <<EOF
[{
"Condition": {
"KeyPrefixEquals": "img/"
},
"Redirect": {
"ReplaceKeyPrefixWith": "images/"
}
}]
EOF
redirect_all_requests_to = {
HostName = "www.example.com"
Protocol = "http"
}
}
}
Getting this error
Error: Incorrect attribute value type
on .terraform/modules/s3/main.tf line 23, in resource “aws_s3_bucket” “a”:
23: redirect_all_requests_to = lookup(website.value, “redirect_all_requests_to”, null)
Inappropriate value for attribute “redirect_all_requests_to”: string required.
i am using this module