Skip to content

Instantly share code, notes, and snippets.

@anshajk
Created December 13, 2020 09:00
Show Gist options
  • Save anshajk/cd8e25b67d54f31cd6670ebfbb6248e7 to your computer and use it in GitHub Desktop.
Save anshajk/cd8e25b67d54f31cd6670ebfbb6248e7 to your computer and use it in GitHub Desktop.
Example appspec.yml for AWS CodeDeploy
version: 0.0
os: linux
files:
- source: /index.html
destination: /var/www/html/
hooks:
BeforeInstall:
- location: scripts/install_dependencies.sh
timeout: 300
runas: root
- location: scripts/start_server.sh
timeout: 300
runas: root
ApplicationStop:
- location: scripts/stop_server.sh
timeout: 300
runas: root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment