Skip to content

Commit

Permalink
fix EFS volume configuration getting discarded (#284)
Browse files Browse the repository at this point in the history
Co-authored-by: Jean-Francois Leblanc-Richard <jleblancrichard@simplyanalytics.com>
Co-authored-by: RoseSecurity <72598486+RoseSecurity@users.noreply.github.com>
  • Loading branch information
3 people committed Aug 21, 2024
1 parent 3878846 commit 18dc64d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ module "ecs_alb_service_task" {
subnet_ids = var.ecs_private_subnet_ids
container_port = var.container_port
nlb_container_port = var.nlb_container_port
docker_volumes = var.volumes
docker_volumes = [for volume in var.volumes : volume if length(volume.docker_volume_configuration) > 0]
efs_volumes = [for volume in var.volumes : volume if length(volume.efs_volume_configuration) > 0]
ecs_load_balancers = local.load_balancers
deployment_controller_type = var.deployment_controller_type
deployment_maximum_percent = var.deployment_maximum_percent
Expand Down

0 comments on commit 18dc64d

Please sign in to comment.