Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save myoung34/1bb9fe8e9986bdfb8461d639eac5210d to your computer and use it in GitHub Desktop.
Save myoung34/1bb9fe8e9986bdfb8461d639eac5210d to your computer and use it in GitHub Desktop.
packages:
yum:
nginx: []
Resources:
AWSEBLoadBalancer:
Type: "AWS::ElasticLoadBalancing::LoadBalancer"
Properties:
HealthCheck:
HealthyThreshold: "3"
Timeout: "5"
UnhealthyThreshold: "5"
Interval: "6"
Target: "HTTPS:443/health_check/"
commands:
01_stop_nginx:
command: |
"stuff"
files:
/etc/nginx/nginx.conf:
mode: "000644"
owner: root
group: root
content: |
stuff
/opt/elasticbeanstalk/hooks/appdeploy/post/99_restart_nginx:
mode: "000777"
owner: root
group: root
content: |
#!/bin/sh
service nginx restart
echo "done restarting nginx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment