Skip to content

Instantly share code, notes, and snippets.

@leaderdevops
leaderdevops / ec2-apache.sh
Created September 27, 2020 05:47 — forked from herrera-ignacio/ec2-apache.sh
EC2 User data: install Apache web server for Amazon Linux 2 Image
#!/bin/bash
########################################
##### USE THIS WITH AMAZON LINUX 2 #####
########################################
# get admin privileges
sudo su
# install httpd (Linux 2 version)