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

[Enhancement]: AWS CodeBuild now supports using GitHub Apps to access source repositories #39011

Open
trevorrea opened this issue Aug 23, 2024 · 1 comment · May be fixed by #40191
Open

[Enhancement]: AWS CodeBuild now supports using GitHub Apps to access source repositories #39011

trevorrea opened this issue Aug 23, 2024 · 1 comment · May be fixed by #40191
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/codebuild Issues and PRs that pertain to the codebuild service.

Comments

@trevorrea
Copy link
Contributor

trevorrea commented Aug 23, 2024

Description

AWS CodeBuild now integrates with GitHub Apps as the authentication method to access your repositories. A GitHub App connection can be set as the default authentication method for all projects, or can be specified for an individual project source.

Affected Resource(s) and/or Data Source(s)

aws_codebuild
aws_codebuild_source_credential

Potential Terraform Configuration

resource "aws_codebuild_project" "example" {
  source {
    type            = "GITHUB"
    location        = "https://github.com/example/example.git"
    auth {
       type = "CODECONNECTIONS",
       resource = "arn:aws:codestar-connections:us-east-1:xxxxxxxxxxxx:connection/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
  }
}

resource "aws_codebuild_source_credential" "example" {
  auth_type   = "CODECONNECTIONS"
  resource = "arn:aws:codestar-connections:us-east-1:xxxxxxxxxxxx:connection/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

References

Announcement : https://aws.amazon.com/about-aws/whats-new/2024/08/aws-codebuild-github-apps-access-source-repositories/
Documentation: https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens-github-overview.html#connections-github-app

Would you like to implement a fix?

None

@trevorrea trevorrea added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 23, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/codebuild Issues and PRs that pertain to the codebuild service. label Aug 23, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 23, 2024
@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Aug 26, 2024
@AP-Hunt AP-Hunt linked a pull request Nov 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/codebuild Issues and PRs that pertain to the codebuild service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants