version: 0.0 os: linux files: - source: / destination: /home/ec2-user/dep-dir - source: /autoaid.service destination: /etc/systemd/system/ hooks: AfterInstall: - location: scripts/install_dependencies.sh timeout: 300 runas: root ApplicationStart: - location: start_application timeout: 300 runas: root ApplicationStop: - location: stop_application timeout: 300 runas: root