3: appspec.yml
How to run custom actions during deploy?
- Appspec file; lifecycle
What’s the appspec.yml?
- Manages each deployment as a series of lifecycle event hooks
- YAML or JSON format
- hooks = run custom code at specific times during deploy
What’s defined in the appspec?
- Version # (0.0)
- OS (e.g. linux)
- Files
- Copied to compute on deployment
- Src: Location in the revision
- Dest: Location on the compute
- Hooks, e.g.:
- BeforeInstall
- AfterInstall
- ApplicationStart
- ValidateService
- AfterAllowTraffic
- See more at https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html
- Deploying to different outlets (lambda, ecs) require different appspec