Skip to main content
Knowledge Base

How do I mount multiple EBS volumes?

Answer

I know that I can use `persistent-ebs-volume` in `terraform-aws-server` to mount an EBS volume on boot. However, how do I use that script to mount multiple volumes on different mount points? --- <ins datetime="2022-09-19T15:45:07Z"> <p><a href="https://support.gruntwork.io/hc/requests/109259">Tracked in ticket #109259</a></p> </ins>

`persistent-ebs-volume` can be used to mount multiple volumes by calling it multiple times with different parameters that identify the different volumes. For example, you can have different tags for the volumes, and pass different key names for the `--volume-with-same-tag` argument.