how to configure aws credentials on ec2 instance using user data script code example
Example: # /bin/bash for launching ec2
#!/bin/bash
yum update -y
service httpd start
chkconfig httpd on
#!/bin/bash
yum update -y
service httpd start
chkconfig httpd on