-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Support for multiple volumes for an ecs task definition #10836
Comments
Sorry, clearly a RTFM |
How is this clearly an RTFM? I have RTFM, and terraform does not support a plurality of volumes. The source code shows it doesn't support lists of volumes or a JSON block. |
You can just repeat the volume block to add multiple volumes. |
There is no indication on https://www.terraform.io/docs/providers/aws/r/ecs_task_definition.html#volume that the volume block can be resused. I think it should be added to the documentation since at least a few people are confused. |
Hey everyone, Just to let you know that the documentation has been updated accordingly, and the website should reflect it on the next release. |
Here is my user case. It is hard to set volume blocks with different applications in terraform modules.
Which I prefer
with that, I can define it as exteral json file as well , same as container_definitions ((sample: https://www.terraform.io/docs/providers/aws/r/ecs_task_definition.html) ), what ever how many volumes need be added.
Because of this reason, I have to take this resource |
@ozbillwang I've got exactly the same problem. Did you find an acceptable workaround?! |
I by-pass the volume setting and use For example, when build image, add below line in
In task definition, add below lines
|
Loading volumes from whatever external source is fundamental here. Moving the task_definition out of any ecs service modules is a big frustration because it makes the module resource (service) depending from an "interface" value (task_definition arn). Really bad and pointless. Any chances to have this feature? |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
0.8.1
Affected Resource(s)
Requested Behavior
In the
aws_ecs_task_definition
you can specify a single volume. However the AWS API documentation mentions you can specify multiple volumes. It would be nice if that would also be possible withinaws_ecs_task_definition
.The text was updated successfully, but these errors were encountered: