Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PLT-383 Remove sbx config from opt-out #70

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions terraform/services/opt-out-export/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ locals {
ab2d_db_envs = {
dev = "dev"
test = "east-impl"
sbx = "sbx-sandbox"
prod = "east-prod"
}
db_sg_name = {
ab2d = "ab2d-${local.ab2d_db_envs[var.env]}-database-sg"
bcda = var.env == "sbx" ? "bcda-opensbx-rds" : "bcda-${var.env}-rds"
dpc = var.env == "sbx" ? "dpc-prod-sbx-db" : "dpc-${var.env}-db"
bcda = "bcda-${var.env}-rds"
dpc = "dpc-${var.env}-db"
}
memory_size = {
ab2d = 10240
Expand Down
6 changes: 3 additions & 3 deletions terraform/services/opt-out-export/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ variable "app" {
}

variable "env" {
description = "The application environment (dev, test, sbx, prod)"
description = "The application environment (dev, test, prod)"
type = string
validation {
condition = contains(["dev", "test", "sbx", "prod"], var.env)
error_message = "Valid value for env is dev, test, sbx, or prod."
condition = contains(["dev", "test", "prod"], var.env)
error_message = "Valid value for env is dev, test, or prod."
}
}
5 changes: 2 additions & 3 deletions terraform/services/opt-out-import/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ locals {
ab2d_db_envs = {
dev = "dev"
test = "east-impl"
sbx = "sbx-sandbox"
prod = "east-prod"
}
db_sg_name = {
ab2d = "ab2d-${local.ab2d_db_envs[var.env]}-database-sg"
bcda = var.env == "sbx" ? "bcda-opensbx-rds" : "bcda-${var.env}-rds"
dpc = var.env == "sbx" ? "dpc-prod-sbx-db" : "dpc-${var.env}-db"
bcda = "bcda-${var.env}-rds"
dpc = "dpc-${var.env}-db"
}
memory_size = {
ab2d = 2048
Expand Down
6 changes: 3 additions & 3 deletions terraform/services/opt-out-import/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ variable "app" {
}

variable "env" {
description = "The application environment (dev, test, sbx, prod)"
description = "The application environment (dev, test, prod)"
type = string
validation {
condition = contains(["dev", "test", "sbx", "prod"], var.env)
error_message = "Valid value for env is dev, test, sbx, or prod."
condition = contains(["dev", "test", "prod"], var.env)
error_message = "Valid value for env is dev, test, or prod."
}
}
6 changes: 3 additions & 3 deletions terraform/services/opt-out-test/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ variable "app" {
}

variable "env" {
description = "The application environment (dev, test, sbx, prod)"
description = "The application environment (dev, test, prod)"
type = string
validation {
condition = contains(["dev", "test", "sbx", "prod"], var.env)
error_message = "Valid value for env is dev, test, sbx, or prod."
condition = contains(["dev", "test", "prod"], var.env)
error_message = "Valid value for env is dev, test, or prod."
}
}