This is an example of a bash shell script to mount an AWS Elastic File System (EFS) to an Ubuntu instance. You can add this to the User Data section when launching new server.
Replace fs-0000000 on line 5 with your file system ID.
This is just an example. Use it at your own risk.