Skip to content

Commit

Permalink
fix: remove default container_memory (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
ztzxt authored Jan 18, 2024
1 parent e817612 commit 4383729
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
locals {
container_cpu = var.container_cpu != null ? var.container_cpu : aws_ssm_parameter.container_cpu.value
container_definitions = "[${module.container_definition.json_map_encoded}, ${module.container_definition_fluentbit.json_map_encoded}]"
container_memory = var.container_memory != null ? var.container_memory : local.container_memory_reservation
container_memory_reservation = var.container_memory_reservation != null ? var.container_memory_reservation : aws_ssm_parameter.container_memory.value
default_healthcheck = {
command = [
Expand Down Expand Up @@ -110,7 +109,7 @@ module "container_definition" {

container_cpu = local.container_cpu
container_image = "${module.ecr.repository_url}:${local.image_tag}"
container_memory = local.container_memory
container_memory = var.container_memory
container_memory_reservation = local.container_memory_reservation
docker_labels = local.docker_labels
healthcheck = local.healthcheck
Expand Down

0 comments on commit 4383729

Please sign in to comment.