Created
June 27, 2018 03:29
-
-
Save tuffacton/9beb05db16f41a00aed7c8bbd97e34bf to your computer and use it in GitHub Desktop.
Example AWS Bash Startup Script for Apache (and copy/deploy HTML from S3)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| yum update -y | |
| yum install httpd -y | |
| service httpd start | |
| chkconfig httpd on | |
| cd /var/www/html | |
| aws s3 cp s3://<s3-bucket-name>/index.html /var/www/html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment