Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-codebuild : Cannot create a CodeBuildProject Source using a codestar connection #32300

Closed
lehigh123 opened this issue Nov 27, 2024 · 2 comments
Assignees
Labels
@aws-cdk/aws-codebuild Related to AWS CodeBuild closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. documentation This is a problem with documentation. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@lehigh123
Copy link

Describe the issue

In the AWS console I am able to create a Code Build buildproject with:

  1. Github as the source:
  2. Custom source credential
  3. Specify which codestar connection should be used
  4. And then select the repository I am interested in

However, when I try to make the corresponding build project defined in CDK it is not possible:

e.g. my connection works when I use it to create a codestar source action:

 return new CodeStarConnectionsSourceAction(
            {
                actionName: `${this.repo}`,
                connectionArn: this.connectionArn,
                repo: this.repo,
                output: artifact,
                owner: this.owner,
                branch: this.branch
            }
        )

but there is no corresponding way to use that connectionArn

import {BuildSpec, LinuxBuildImage, Project, Source} from "aws-cdk-lib/aws-codebuild";
...

        const buildDockerImage = new Project(this, '123Project',
            {
                projectName: "123BProject",
                source: ?
                
            });

Links

https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.Project.html
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.GitHubSourceProps.html

@lehigh123 lehigh123 added documentation This is a problem with documentation. needs-triage This issue or PR still needs to be triaged. labels Nov 27, 2024
@github-actions github-actions bot added the @aws-cdk/aws-codebuild Related to AWS CodeBuild label Nov 27, 2024
@khushail khushail added needs-reproduction This issue needs reproduction. p2 and removed needs-triage This issue or PR still needs to be triaged. labels Nov 27, 2024
@khushail khushail self-assigned this Nov 27, 2024
@khushail khushail added investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-reproduction This issue needs reproduction. labels Dec 7, 2024
@khushail
Copy link
Contributor

khushail commented Dec 7, 2024

Hi @lehigh123 , checking the AWS Cloudformation docs and CDK as well, looks like CodeBuild source does not provide the support for using CodeStar connection arn -

Hope that helps in clarification.

@khushail khushail added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Dec 7, 2024
Copy link

github-actions bot commented Dec 9, 2024

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-codebuild Related to AWS CodeBuild closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. documentation This is a problem with documentation. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants