aws-codedeploy-agent
aws-codedeploy-agent copied to clipboard
Appspec.yml - support deployment specification params
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_namedeployment_iddeployment_group_namedeployment_group_dirdeployment_root_dirlast_successful_deployment_dir
Coverage increased (+0.03%) to 94.591% when pulling 299d66fc71e9f2fd1789914db1beb5471e957334 on ejhayes:master into 41e3296e5de77b7b3b61844b00996a0bea7f68ad on aws:master.
will this feature be available soon as it's petty cool
Coverage decreased (-0.1%) to 91.882% when pulling 6aa99fd970bf40477e54148e9e89c8bdbbae6254 on ejhayes:master into 81ffec26b1a394e5c951bc2e8a8ba3e731e81148 on aws:master.
@ejhayes i have just tried this and it doesnt work. Is this supposed to be live yet?
Any idea when this might be available?
@praymaker the PR right now is failing will have to fix test before i accept this @ejhayes
Hi can we see this feature live soon? or is there any fix that needs to be done, we are willing to chip in!
@wickstargazer I was taking a look at this a couple days ago and was having trouble getting it to pass the tests. The appspec yaml file is getting parsed as a ERB, but the tests are failing because my update passing the deployment spec params to the parsing function. Want to take a look to see if you can get it to pass?
3 years later, still not merged :( In gitlab-ci.yml they use this syntax:
files:
- source: someDir
destination: /var/www/${APPLICATION_NAME}
+1
any updates on this
any updates ?
Any update?
Any update?
Ping.. any developers looking at this? Cheers