Comments (20)
This feature has been added as part of the 1.4.0 release.
from aws-codedeploy-agent.
@apoorv-kumar it doesn't, as far as i understand, the linked thread is about codepipeline and not plain codedeploy
from aws-codedeploy-agent.
Seems like a reasonable feature request. Thanks.
from aws-codedeploy-agent.
Seconding this feature. Some usage details so you understand our use case:
We don't use S3, but instead deploy via CodeDeploy directly from GitHub (GUI: "My application is stored in GitHub" checkbox). We really need a way within an AfterInstall hooks script to be able to get the git commit SHA (GUI: "Commit ID") so it can be put into a file on the server. This would save me having to tell our developers "Just use the GUI" to find out what code is actively on the box (and yes I'm well aware the agent has this information deep within /opt/codedeploy-agent). An environment variable would be absolutely perfect.
from aws-codedeploy-agent.
I have the exact same issue and workaround as woodhull. Querying the deployment ID to get the commit id. +1 for this feature request!
from aws-codedeploy-agent.
+1
from aws-codedeploy-agent.
+1
from aws-codedeploy-agent.
+1
from aws-codedeploy-agent.
+1
from aws-codedeploy-agent.
+1
from aws-codedeploy-agent.
+1
from aws-codedeploy-agent.
+1
from aws-codedeploy-agent.
+1
from aws-codedeploy-agent.
+1
from aws-codedeploy-agent.
+1
from aws-codedeploy-agent.
I think this solves it - https://forums.aws.amazon.com/thread.jspa?threadID=226646
from aws-codedeploy-agent.
Added to our task list so we can review this new design decision with the team
from aws-codedeploy-agent.
I also have a use case that would benefit.
As a workaround, is it possible to query the commit ID through the API (using the AWS CLI, possibly)?
from aws-codedeploy-agent.
👍 on this request.
As others have noted, the workaround is to use the DEPLOYMENT_ID
environment variable to query for the commit ID.
For example:
aws deploy get-deployment --deployment-id $DEPLOYMENT_ID --query "deploymentInfo.revision.gitHubLocation.commitId" --output text
from aws-codedeploy-agent.
The 1.4.0 release exposes the commit SHA-1, but does not (yet) provide the repository URL itself for/from which die deployment was triggered. However, that information can be queried through the API when needed.
aws deploy get-deployment --deployment-id $DEPLOYMENT_ID --query ".deploymentInfo.revision.gitHubLocation.repository" --output text
from aws-codedeploy-agent.
Related Issues (20)
- [Feature Request] macOS support
- Move After to proper systemd unit file section
- [Feature Request]Appspec.yml validation
- Error validating the SSL configuration: Invalid server certificate HOT 9
- Debian package depends on ruby version < 3.1, even though 3.1 and 3.2 is supported HOT 5
- Windows Deployment Group logs should be in the log folder
- Code deploy falling very frequently HOT 1
- CodeDeplot Access denied when calling "codedeploy-commands.eu-central-1.amazonaws.com:443" HOT 1
- [Feature Request] Debian (12 Bookworm) support HOT 1
- [problem] CodeDeploy Agent systemd service bash-completion error
- [Error] AL2023 - max_revisions - Error deleting directories HOT 3
- CodeDeploy 'Downloading failed bundle.zip from s3 bucket' at "DownloadBundle" step HOT 1
- Service is running but with errors HOT 1
- Codedeploy failing randomly at Install not finding appspec.yml
- Switch to use s3 multipart download when fetching artifacts
- DownloadBundle deployment lifecycle events for troubleshooting UnknownError: execution expired HOT 1
- Failed deployment DownloadBundle events with error "No such file or directory - getcwd" HOT 1
- Add the CodeDeploy agent to the PATH HOT 1
- CodeDeploy agent support for RHEL 9 HOT 1
- Announcement: Releasing Agent 1.7.0 to all regions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-codedeploy-agent.