July 2017
Intermediate to advanced
402 pages
9h 38m
English
We will first make CodeDeploy generate the version file. To do that, we will open the appspec.ymlfile at the root of the helloworld application directory.
At the bottom of the file, after the ValidateService hook, we will use a new hook to trigger our setversion script. This operation will need to happen after the helloworld application is installed. As such, we will want to add the following hook:
AfterInstall:
- location: scripts/setversion.sh
timeout: 180
We now need to handle our new files. The first one is the logrotate configuration. In the files section at the top of our appsec file, add the following:
- source: conf/logrotate
destination: /etc/logrotate.d/helloworld
Lastly, ...
Read now
Unlock full access