Skip to content

Commit 18dc64d

Browse files
kim0jf-leblancrichardRoseSecurity
authored
fix EFS volume configuration getting discarded (#284)
Co-authored-by: Jean-Francois Leblanc-Richard <jleblancrichard@simplyanalytics.com> Co-authored-by: RoseSecurity <72598486+RoseSecurity@users.noreply.github.com>
1 parent 3878846 commit 18dc64d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ module "ecs_alb_service_task" {
173173
subnet_ids = var.ecs_private_subnet_ids
174174
container_port = var.container_port
175175
nlb_container_port = var.nlb_container_port
176-
docker_volumes = var.volumes
176+
docker_volumes = [for volume in var.volumes : volume if length(volume.docker_volume_configuration) > 0]
177+
efs_volumes = [for volume in var.volumes : volume if length(volume.efs_volume_configuration) > 0]
177178
ecs_load_balancers = local.load_balancers
178179
deployment_controller_type = var.deployment_controller_type
179180
deployment_maximum_percent = var.deployment_maximum_percent

0 commit comments

Comments
 (0)