Skip to content

(code_pipeline_actions): Access to variables in CodeStarConnectionsSourceAction #17807

Closed
@kornicameister

Description

@kornicameister
Contributor

Description

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

Acknowledge

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

Activity

kornicameister

kornicameister commented on Dec 2, 2021

@kornicameister
ContributorAuthor

It works using syntax from documentation, but would certainly be nicer to have common interface.

skinny85

skinny85 commented on Dec 3, 2021

@skinny85
Contributor

Yep, agreed @kornicameister, thanks for opening the issue!

Would you consider contributing this as a PR? It should be relatively straightforward I think if you look how the existing source Actions implement variables (for example, here's the code for the GitHubSourceAction).

Our contributing guide: https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md

Thanks,
Adam

added
effort/smallSmall work item – less than a day of effort
feature/coverage-gapGaps in CloudFormation coverage by L2 constructs
and removed
needs-triageThis issue or PR still needs to be triaged.
on Dec 3, 2021
removed their assignment
on Dec 3, 2021
kornicameister

kornicameister commented on Dec 7, 2021

@kornicameister
ContributorAuthor

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

kewur

kewur commented on Dec 13, 2021

@kewur

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

skinny85

skinny85 commented on Dec 13, 2021

@skinny85
Contributor

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

14 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @skinny85@kewur@kornicameister

      Issue actions

        (code_pipeline_actions): Access to variables in CodeStarConnectionsSourceAction · Issue #17807 · aws/aws-cdk