Vince
Vince

Reputation: 11

Fetch AWS CodeBuild environment variable [CODEBUILD_RESOLVED_SOURCE_VERSION] in AWS Lambda

I need to obtain git commit sha from codebuild and use it in aws lambda environment variable. Is this possible? Thank you!

Upvotes: 1

Views: 210

Answers (1)

pabloi
pabloi

Reputation: 672

You can check the available environment variables in the aws code build page, the commit sha would be CODEBUILD_RESOLVED_SOURCE_VERSION in particular

Upvotes: 0

Related Questions