Skip to content

Commit

Permalink
fix: default dev/test to smaller environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ividito committed Mar 19, 2024
1 parent a47015b commit a47cd5b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions infrastructure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module "mwaa" {
mwaa_variables_json_file_id_path = { file_path = local_file.mwaa_variables.filename, file_id = local_file.mwaa_variables.id }
stage = var.stage
airflow_version = "2.4.3"
environment_class = lookup(var.mwaa_environment_class, var.stage, "mw1.small")
min_workers = lookup(var.min_workers, var.stage, 1)
ecs_containers = [
{
Expand Down
9 changes: 9 additions & 0 deletions infrastructure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ variable "min_workers" {
production = 3
}
}

variable "mwaa_environment_class" {
type = map(string)
default = {
dev = "mw1.small"
staging = "mw1.medium"
production = "mw1.medium"
}
}
variable "vector_secret_name" {
type = string
}
Expand Down

0 comments on commit a47cd5b

Please sign in to comment.