Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mwjones-aws opened this issue Apr 26, 2023 · 0 comments

Comments

@mwjones-aws
Copy link
Contributor

#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant