yum install -y nginx
systemctl start nginx
systemctl enable nginx
###Sample Nginx Config:
SELinux Commands
getenforce
setenforce Permissive
setenforce Enforcing
To allow nginx access to specific folder
###Install HAProxy
yum install haproxy
###Update Config file for frontend and backend.
https://www.digicert.com/help/ |
sudo yum install wget | |
wget https://bootstrap.pypa.io/get-pip.py | |
sudo python get-pip.py | |
sudo pip install awscli |
aws --profile lab sts assume-role --role-arn "arn:aws:iam::97492:role/master" --role-session-name vpack --duration-seconds 3600 --external-id "myNewCreds" |
while true; do ; echo 'VV' ; done |
aws --profile lab --region us-east-1 ec2 create-tags --tags Key=ExpirationDate,Value=$(date +%Y-%m-%d -d '+ 30 day' ) --resources i-c8efc8e6 i-aa5a8581 i-4e56cc1e |
Uploading Renewed SSL Certs to AWS :
for x in `find . -name "*.json.gz"` ; do zcat $x | jq .Records[] | mongoimport --collection cloudtrail --jsonArray ; done |