From 628dfc343ede77bcee3db4a483dee9e60918083a Mon Sep 17 00:00:00 2001 From: Loren Yu Date: Mon, 18 Dec 2023 15:12:50 -0800 Subject: [PATCH] Remove unused config value (#519) --- infra/app/app-config/env-config/outputs.tf | 1 - infra/app/database/main.tf | 1 - infra/modules/database/variables.tf | 5 ----- 3 files changed, 7 deletions(-) diff --git a/infra/app/app-config/env-config/outputs.tf b/infra/app/app-config/env-config/outputs.tf index c54e4f97..09005a1f 100644 --- a/infra/app/app-config/env-config/outputs.tf +++ b/infra/app/app-config/env-config/outputs.tf @@ -2,7 +2,6 @@ output "database_config" { value = var.has_database ? { region = var.default_region cluster_name = "${var.app_name}-${var.environment}" - access_policy_name = "${var.app_name}-${var.environment}-db-access" app_username = "app" migrator_username = "migrator" schema_name = var.app_name diff --git a/infra/app/database/main.tf b/infra/app/database/main.tf index 7535e3bb..d881a35d 100644 --- a/infra/app/database/main.tf +++ b/infra/app/database/main.tf @@ -76,7 +76,6 @@ module "database" { source = "../../modules/database" name = "${local.prefix}${local.database_config.cluster_name}" - access_policy_name = "${local.prefix}${local.database_config.access_policy_name}" app_access_policy_name = "${local.prefix}${local.database_config.app_access_policy_name}" migrator_access_policy_name = "${local.prefix}${local.database_config.migrator_access_policy_name}" diff --git a/infra/modules/database/variables.tf b/infra/modules/database/variables.tf index 78d6db04..8033fa7e 100644 --- a/infra/modules/database/variables.tf +++ b/infra/modules/database/variables.tf @@ -7,11 +7,6 @@ variable "name" { } } -variable "access_policy_name" { - description = "name of the IAM policy to create that will be provide the ability to connect to the database as a user that will have read/write access." - type = string -} - variable "app_access_policy_name" { description = "name of the IAM policy to create that will provide the service the ability to connect to the database as a user that will have read/write access." type = string