Skip to content

Instantly share code, notes, and snippets.

@tgmerritt
Forked from luisacarrion/01_nginx.config
Created February 19, 2020 02:00
Show Gist options
  • Save tgmerritt/19342e18bbb3601ec6b81a3a02bc9da9 to your computer and use it in GitHub Desktop.
Save tgmerritt/19342e18bbb3601ec6b81a3a02bc9da9 to your computer and use it in GitHub Desktop.
AWS Elastic Beanstalk .ebextensions - get S3 file with commands key
commands:
01_get_nginx_conf_file:
command: aws s3 cp s3://your-bucket-name/shared_config/an_nginx_http.conf /home/ec2-user
container_commands:
01_move_nginx_conf_file:
command: mv -f /home/ec2-user/an_nginx_http.conf /etc/nginx/conf.d/an_nginx_http.conf
02_reload_nginx:
command: "sudo service nginx reload"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment