From fced02db55c9f66ceac34e4d0c04e124c864df5f Mon Sep 17 00:00:00 2001 From: "bscriver123 (aider)" Date: Wed, 11 Dec 2024 18:49:54 +0000 Subject: [PATCH] fix: Update type constraints and provider references to remove quotes --- aws/aws_reverse_proxy/certificate.tf | 2 +- aws/aws_reverse_proxy/variables.tf | 4 ++-- aws/aws_static_site/variables.tf | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/aws/aws_reverse_proxy/certificate.tf b/aws/aws_reverse_proxy/certificate.tf index ccb4c3d..1ece4bd 100644 --- a/aws/aws_reverse_proxy/certificate.tf +++ b/aws/aws_reverse_proxy/certificate.tf @@ -1,7 +1,7 @@ # Generate a certificate for the domain automatically using ACM # https://www.terraform.io/docs/providers/aws/r/acm_certificate.html resource "aws_acm_certificate" "this" { - provider = "aws.us_east_1" # because ACM is only available in the "us-east-1" region + provider = aws.us_east_1 # because ACM is only available in the "us-east-1" region domain_name = "${var.site_domain}" validation_method = "DNS" # the required records are created below tags = "${merge(var.tags, map("Name", "${var.comment_prefix}${var.site_domain}"))}" diff --git a/aws/aws_reverse_proxy/variables.tf b/aws/aws_reverse_proxy/variables.tf index c68537f..67e7bf4 100644 --- a/aws/aws_reverse_proxy/variables.tf +++ b/aws/aws_reverse_proxy/variables.tf @@ -38,7 +38,7 @@ variable "default_root_object" { variable "add_response_headers" { description = "Map of HTTP headers (if any) to add to outgoing responses before sending them to clients" - type = "map" + type = map(string) default = { "Strict-Transport-Security" = "max-age=31557600; preload" # i.e. 1 year (in seconds) @@ -105,7 +105,7 @@ variable "lambda_logging_enabled" { variable "tags" { description = "AWS Tags to add to all resources created (where possible); see https://aws.amazon.com/answers/account-management/aws-tagging-strategies/" - type = "map" + type = map(string) default = {} } diff --git a/aws/aws_static_site/variables.tf b/aws/aws_static_site/variables.tf index 6086688..853e988 100644 --- a/aws/aws_static_site/variables.tf +++ b/aws/aws_static_site/variables.tf @@ -39,7 +39,7 @@ variable "default_root_object" { variable "add_response_headers" { description = "Map of HTTP headers (if any) to add to outgoing responses before sending them to clients" - type = "map" + type = map(string) default = { "Strict-Transport-Security" = "max-age=31557600; preload" # i.e. 1 year (in seconds) @@ -73,7 +73,7 @@ variable "lambda_logging_enabled" { variable "tags" { description = "AWS Tags to add to all resources created (where possible); see https://aws.amazon.com/answers/account-management/aws-tagging-strategies/" - type = "map" + type = map(string) default = {} }