aws / aws/aws-codedeploy-agent
[Feature Request] support deployment specification params formatting in appspec.yml
- Vorherrschende Sprache
- Rust
- Sterne
- 337
- Forks
- 195
- Ø Merge
- 10 Std. 54 Min.
- Gemergte PRs (30 T.)
- 4
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
Überprüfe zuerst den verknüpften Pull Request #70 und den Parsing-Pfad von appspec.yml. Bestätige, wie Werte der Deployment-Spezifikation dargestellt werden und wo die Formatierung angewendet wird. Als abgeschlossen gilt die Aufgabe, wenn die aufgeführten Werte in appspec.yml-Feldern wie destination verwendet werden können und die Abdeckung dem in der Anfrage beschriebenen Verhalten entspricht.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, rust
- Bereich
- cloud, devops
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100