Skip to content

Instantly share code, notes, and snippets.

View nick-kang's full-sized avatar

Nick Kang nick-kang

  • USA
View GitHub Profile
@rupertbg
rupertbg / get-codepipeline-execution-id-within-codebuild.sh
Last active April 1, 2024 12:49
Get a CodePipeline Execution ID from within a CodeBuild Job
aws codepipeline get-pipeline-state --region us-west-2 --name ${CODEBUILD_INITIATOR#codepipeline/} --query 'stageStates[?actionStates[?latestExecution.externalExecutionId==`'${CODEBUILD_BUILD_ID}'`]].latestExecution.pipelineExecutionId' --output text