Follow the steps given below to mount s3 to the ec2 instance
Update the system
apt-get update ...