Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. version: 0.0
  2. os: linux
  3. files:
  4. - source: ./ # This line assumes that your deployment code is located in
  5. destination: /home/ubuntu/App
  6. permissions:
  7. # sets application runner script as executable - This example assumes the sample 'my_app.sh' script has been added to the the directory 'my_app' and serves as the application launcher
  8. - object: /home/ubuntu/App/
  9. pattern: "app.sh"
  10. owner: ubuntu
  11. mode: 755
  12. type:
  13. - file
  14. # sets ec2-user as the owner:group for the application deployment directory
  15. - object: /home/ubuntu/
  16. pattern: "App"
  17. owner: ubuntu
  18. type:
  19. - directory
  20. hooks:
  21. # All hook scripts are assumed to be in the /install/aws_cd directory located at the root of the deployment zip archive
  22. ApplicationStop:
  23. - location: scripts/app_stop.sh
  24. timeout: 180
  25. runas: ubuntu
  26. BeforeInstall:
  27. - location: scripts/before_install.sh
  28. timeout: 180
  29. runas: ubuntu
  30. AfterInstall:
  31. - location: scripts/after_install.sh
  32. timeout: 180
  33. runas: ubuntu
  34. ApplicationStart:
  35. - location: scripts/app_start.sh
  36. timeout: 180
  37. runas: ubuntu
  38. ValidateService:
  39. - location: scripts/validate_service.sh
  40. timeout: 180
  41. runas: ubuntu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement