-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix EFS volume configuration getting discarded #235
Conversation
@@ -167,7 +167,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] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These conditions might be better in the ecs alb service task module instead of here
https://github.com/cloudposse/terraform-aws-ecs-alb-service-task
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nitrocode Wouldn't that require the ecs alb service task module to be refactored to accept a generic volumes
variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm i don't imagine there would be much of a refactoring. I'll defer to the @cloudposse/contributors if they have an opinion on it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to move this to ecs alb service task if needed. Just let me know what needs to be done to get this fix merged please
/terratest |
replaced by #284 |
what
ecs-alb-service-task
module'sdocker_volumes
orefs_volumes
variables based on whether they have non-emptydocker_volume_configuration
orefs_volume_configuration
lists.why
volumes
variable only getting passed to theecs-alb-service-task
module'sdocker_volumes
variable.references