cloudposse / terraform-aws-ecs-container-definition

Terraform module to generate well-formed JSON documents (container definitions) that are passed to the aws_ecs_task_definition Terraform resource
https://cloudposse.com/accelerate
Apache License 2.0
339 stars 244 forks source link

Allow to configure volumes #113

Closed snowsky closed 3 years ago

snowsky commented 3 years ago

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

This feature request is to add host volumes to container definition, for example, from https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_task_definition:

volume {
    name      = "service-storage"
    host_path = "/ecs/service-storage"
  }

Expected Behavior

Local host path can be used to create volumes.

Use Case

Sometimes the volume parameter is required for container definition and it is supported by Terraform provider. Here is a reference: https://registry.terraform.io/modules/lazzurs/ecs-service/aws/latest?tab=inputs.

evanstoddard23 commented 3 years ago

Volumes are specified in the task definition, not the container definition.

snowsky commented 3 years ago

thanks @evanstoddard23