Automounting ebs volume in linux-Ec2 instance using cloud formation?


Wrote one CFT to create redhat instance with two ebs volume attached. And need automount or formatted the ebs volume from the cft itself.


Need to mount “DeviceName” : “/dev/sdm”, this volume automatically.


You will need to add a small script to the UserData property of your instance or launch configuration that this BlockDeviceMappings is associated with. UserData is executed the first time the instance boots. The devices will automatically be remounted when the instance reboots using /etc/fstab.

More information:

Leave a Reply