aws / aws/aws-codedeploy-agent

[Feature Request] support deployment specification params formatting in appspec.yml

Open
#365 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
337
Forks
195
Avg merge
10h 54m
Merged PRs (30d)
4

Description

https://github.com/aws/aws-codedeploy-agent/pull/70

### Copied from PR description

It looks like it is possible to use deployment specification values in hook scripts
https://blogs.aws.amazon.com/application-management/post/Tx1PX2XMPLYPULD/Using-CodeDeploy-Environment-Variables

However, I noticed that it wasn't possible to use these values in the appspec.yml file. This PR adds support for that. To use the deployment specification values in the appspec.yml you can simply do this:

version: 0.0
os: linux
files:
- source: someDir
destination: /var/www/<%= application_name %>
hooks:
ValidateService:
- location: scripts/validate_app
timeout: 15
runas: root

The following values are supported:

application_name
deployment_id
deployment_group_name
deployment_group_dir
deployment_root_dir
last_successful_deployment_dir

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.