diff --git a/src/providers.tf b/src/providers.tf index ef923e1..95ab87f 100644 --- a/src/providers.tf +++ b/src/providers.tf @@ -14,6 +14,6 @@ provider "aws" { } module "iam_roles" { - source = "../account-map/modules/iam-roles" + source = "github.com/cloudposse-terraform-components/aws-account-map//src/modules/iam-roles?ref=v1.537.2" context = module.this.context } diff --git a/src/variables.tf b/src/variables.tf index 878591f..4af197c 100644 --- a/src/variables.tf +++ b/src/variables.tf @@ -564,7 +564,7 @@ variable "proxy_client_password_auth_type" { description = "The type of authentication the proxy uses for connections from clients. Valid values: MYSQL_NATIVE_PASSWORD, POSTGRES_SCRAM_SHA_256, POSTGRES_MD5, SQL_SERVER_AUTHENTICATION" validation { - condition = var.proxy_client_password_auth_type == null || contains(["MYSQL_NATIVE_PASSWORD", "POSTGRES_SCRAM_SHA_256", "POSTGRES_MD5", "SQL_SERVER_AUTHENTICATION"], var.proxy_client_password_auth_type) + condition = var.proxy_client_password_auth_type == null || can(index(["MYSQL_NATIVE_PASSWORD", "POSTGRES_SCRAM_SHA_256", "POSTGRES_MD5", "SQL_SERVER_AUTHENTICATION"], var.proxy_client_password_auth_type)) error_message = "Valid values for proxy_client_password_auth_type are: MYSQL_NATIVE_PASSWORD, POSTGRES_SCRAM_SHA_256, POSTGRES_MD5, SQL_SERVER_AUTHENTICATION." } }