version: 0.0
os: linux
files:
  - source: /index.html
    destination: /var/www/html/
hooks:
  BeforeInstall:
    - location: scripts/install_dependencies
      timeout: 300
      runas: root
    - location: scripts/start_server
      timeout: 300
      runas: root
    - location: scripts/elb/register_with_elb.sh
      timeout: 300
      runas: root
  ApplicationStop:
    - location: scripts/elb/deregister_from_elb.sh
      timeout: 300
      runas: root
    - location: scripts/stop_server
      timeout: 300
      runas: root


version: 0.0
os: linux
files:
  - source: /index.html
    destination: /var/www/html/
hooks:
  BeforeInstall:
    - location: scripts/elb/deregister_from_elb.sh
      timeout: 300
      runas: root
    - location: scripts/install_dependencies
      timeout: 300
      runas: root
    - location: scripts/start_server
      timeout: 300
      runas: root
    - location: scripts/elb/register_with_elb.sh
      timeout: 300
      runas: root
  ApplicationStop:
    - location: scripts/stop_server
      timeout: 300
      runas: root


Test with deregister under BeforeInstall.
Test with deregister under BeforeInstall.
