Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(code_pipeline_actions): Access to variables in CodeStarConnectionsSourceAction

See original GitHub issue


Ability to use variables similarly to what is now available in GithubSourceAction.

Use Case

Using bitbucket and recommended CodeStarConnectionsSourceAction I’d like access commit id of the particular source and use it to tag AMI build further down in the pipeline.

Proposed Solution


Other information

cdk-version: 1.134.0


  • I may be able to implement this feature request
  • This feature might incur a breaking change

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

kornicameistercommented, Dec 7, 2021

I will certainly try but I cannot give any ETA on this so if anyone can jump in, all the better.

skinny85commented, Dec 16, 2021

Is there a workaround to get the commitId from CodeStarConnectionsAction in the meantime?

Yep! Just pass the variableNamespace property when creating the CodeStarConnectionsSourceAction, and then use the syntax "#{MyVariableNamespace.CommitId}" in another Action’s definition (like CodeBuild Action’s environment variable).

Read more comments on GitHub >

github_iconTop Results From Across the Web

CodeStarSourceConnection for Bitbucket, GitHub, and GitHub ...
The source action retrieves code changes when a pipeline is manually run or when a webhook ... you must authorize CodePipeline access to...
Read more >
@aws-cdk/aws-codepipeline-actions - npm
Start using @aws-cdk/aws-codepipeline-actions in your project by running `npm i ... A GitHub Access Token, with scopes repo and admin:repo_hook.
Read more >
Variables - Amazon CodePipeline - 亚马逊云科技
Variables allow you to configure your pipeline actions with values that are determined at the time of the action execution. Variables can be...
Read more >
awscodepipelineactions - Go Packages
This package contains Actions that can be used in a CodePipeline. ... if your stack template contains AWS Identity and Access Management (IAM)...
Read more >
CodeStarConnectionsSourceAction.Builder ( ... ... created in the AWS console that has permissions to access this GitHub or BitBucket repository.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found