kumar
kumar

Reputation: 9387

In Terraform aws_ecs_task_definition how do I define bind mount in the volume section

In terraform how do is set the volume type when defining ecs taskdefinition volume. Is there a way to define volume type "Bind Mount" in terrafrom. The documentation does not seems to provide any details

aws_ecs_task_definition

enter image description here

Upvotes: 1

Views: 1204

Answers (1)

Marcin
Marcin

Reputation: 238189

You have to just create is as follows:

  volume {
    name      = "my-bind-volume"
  }

If you want specific path you can use:

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

Upvotes: 2

Related Questions