Skip to content

Instantly share code, notes, and snippets.

@luisacarrion
Last active February 19, 2020 02:00
Show Gist options
  • Save luisacarrion/a7b93593f51a5bff1b8cca1efcd6afc9 to your computer and use it in GitHub Desktop.
Save luisacarrion/a7b93593f51a5bff1b8cca1efcd6afc9 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