Thursday 19 July 2018

AWS - Scripts to execute while creating the EC2 instance


#!/bin/bash
yum install httpd -y
yum update -y
aws s3 cp s3://bucketname/index.html /var/www/html/
service httpd start
chkconfig httpd on