Skip to content

Commit

Permalink
Reduce dev environment resources
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsier committed Jan 15, 2024
1 parent 923e8b6 commit fd0efc4
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions tf/dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ module "rds" {
skip_final_snapshot = true
deletion_protection = false

performance_insights_enabled = true
performance_insights_retention_period = 7
performance_insights_enabled = false
create_monitoring_role = true
monitoring_interval = 60

Expand Down Expand Up @@ -362,15 +361,14 @@ module "ecs_cluster" {
fargate_capacity_providers = {
FARGATE = {
default_capacity_provider_strategy = {
# weight = 50
base = 1
weight = 50
}
}
FARGATE_SPOT = {
default_capacity_provider_strategy = {
weight = 50
}
}
# FARGATE_SPOT = {
# default_capacity_provider_strategy = {
# weight = 50
# }
# }
}
}

Expand All @@ -385,15 +383,15 @@ module "ecs_service" {
name = local.name
cluster_arn = module.ecs_cluster.arn

cpu = 1024
memory = 2048
cpu = 256
memory = 512

enable_execute_command = true

container_definitions = {
praxis = {
cpu = 1024
memory = 2048
cpu = 256
memory = 512
essential = true
image = "${module.ecr.repository_url}:${var.ecs_image_tag}"
port_mappings = [
Expand Down

0 comments on commit fd0efc4

Please sign in to comment.