refactor ebs mounting into reusable script