Giter Site home page Giter Site logo

Comments (20)

mwjones-aws avatar mwjones-aws commented on June 8, 2024 2

This feature has been added as part of the 1.4.0 release.

from aws-codedeploy-agent.

sebastianreloaded avatar sebastianreloaded commented on June 8, 2024 1

@apoorv-kumar it doesn't, as far as i understand, the linked thread is about codepipeline and not plain codedeploy

from aws-codedeploy-agent.

suryanarayanan avatar suryanarayanan commented on June 8, 2024

Seems like a reasonable feature request. Thanks.

from aws-codedeploy-agent.

koitsu avatar koitsu commented on June 8, 2024

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.

elijahchancey avatar elijahchancey commented on June 8, 2024

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.

gergnz avatar gergnz commented on June 8, 2024

+1

from aws-codedeploy-agent.

piercus avatar piercus commented on June 8, 2024

+1

from aws-codedeploy-agent.

fabiopaiva-praxis avatar fabiopaiva-praxis commented on June 8, 2024

+1

from aws-codedeploy-agent.

joncon avatar joncon commented on June 8, 2024

+1

from aws-codedeploy-agent.

jcramb avatar jcramb commented on June 8, 2024

+1

from aws-codedeploy-agent.

shogochiai avatar shogochiai commented on June 8, 2024

+1

from aws-codedeploy-agent.

RAR avatar RAR commented on June 8, 2024

+1

from aws-codedeploy-agent.

richardowen avatar richardowen commented on June 8, 2024

+1

from aws-codedeploy-agent.

dilip-grexit avatar dilip-grexit commented on June 8, 2024

+1

from aws-codedeploy-agent.

apoorv-kumar avatar apoorv-kumar commented on June 8, 2024

+1

from aws-codedeploy-agent.

apoorv-kumar avatar apoorv-kumar commented on June 8, 2024

I think this solves it - https://forums.aws.amazon.com/thread.jspa?threadID=226646

from aws-codedeploy-agent.

annamataws avatar annamataws commented on June 8, 2024

Added to our task list so we can review this new design decision with the team

from aws-codedeploy-agent.

mpdude avatar mpdude commented on June 8, 2024

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.

dicato avatar dicato commented on June 8, 2024

👍 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.

mpdude avatar mpdude commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.