Skip to content

Commit

Permalink
remove region variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaWilkes committed Sep 5, 2024
1 parent 232d1b7 commit 9fb94b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ terraform {
}
}
}

data "aws_region" "current" {}
locals {
name_prefix = join("-", compact([var.namespace, var.stage, var.proxy_id]))
password_secrets_manager_arns = flatten([
for user in var.users : user.password_secrets_manager_arn
])
aws_region = data.aws_region.current.name
}


Expand Down Expand Up @@ -47,7 +47,7 @@ resource "commonfate_proxy_rds_database" "database" {
endpoint = data.aws_db_instance.database.endpoint
database = var.rds_database_name
engine = data.aws_db_instance.database.engine
region = var.region
region = local.aws_region

users = var.users
}
Expand Down
6 changes: 0 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ variable "name" {
type = string
}

variable "region" {
description = "The region the RDS database is deployed in."
type = string
}


variable "rds_database_name" {
description = "The underlying database name in RDS."
type = string
Expand Down

0 comments on commit 9fb94b2

Please sign in to comment.