Skip to content

Commit

Permalink
Remove unused config value (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenyu authored Dec 18, 2023
1 parent 94799cc commit 628dfc3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion infra/app/app-config/env-config/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion infra/app/database/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down
5 changes: 0 additions & 5 deletions infra/modules/database/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 628dfc3

Please sign in to comment.