Created
February 19, 2019 05:08
-
-
Save lachlanagnew/d907d4f27b14a2b125125b58ce4b8811 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 0.0 | |
| os: linux | |
| files: | |
| - source: ./ # This line assumes that your deployment code is located in | |
| destination: /home/ubuntu/App | |
| permissions: | |
| # 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 | |
| - object: /home/ubuntu/App/ | |
| pattern: "app.sh" | |
| owner: ubuntu | |
| mode: 755 | |
| type: | |
| - file | |
| # sets ec2-user as the owner:group for the application deployment directory | |
| - object: /home/ubuntu/ | |
| pattern: "App" | |
| owner: ubuntu | |
| type: | |
| - directory | |
| hooks: | |
| # All hook scripts are assumed to be in the /install/aws_cd directory located at the root of the deployment zip archive | |
| ApplicationStop: | |
| - location: scripts/app_stop.sh | |
| timeout: 180 | |
| runas: ubuntu | |
| BeforeInstall: | |
| - location: scripts/before_install.sh | |
| timeout: 180 | |
| runas: ubuntu | |
| AfterInstall: | |
| - location: scripts/after_install.sh | |
| timeout: 180 | |
| runas: ubuntu | |
| ApplicationStart: | |
| - location: scripts/app_start.sh | |
| timeout: 180 | |
| runas: ubuntu | |
| ValidateService: | |
| - location: scripts/validate_service.sh | |
| timeout: 180 | |
| runas: ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment