-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Support AWS CodeBuild using CodeStar Connection #40191
Open
AP-Hunt
wants to merge
3
commits into
hashicorp:main
Choose a base branch
from
AP-Hunt:f_support-codebuild-using-codestar-connection
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Support AWS CodeBuild using CodeStar Connection #40191
AP-Hunt
wants to merge
3
commits into
hashicorp:main
from
AP-Hunt:f_support-codebuild-using-codestar-connection
+301
−70
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Community NoteVoting for Prioritization
For Submitters
|
github-actions
bot
added
documentation
Introduces or discusses updates to documentation.
service/codebuild
Issues and PRs that pertain to the codebuild service.
needs-triage
Waiting for first response or review from a maintainer.
labels
Nov 19, 2024
AP-Hunt
added a commit
to AP-Hunt/terraform-provider-aws
that referenced
this pull request
Nov 19, 2024
AP-Hunt
added a commit
to AP-Hunt/terraform-provider-aws
that referenced
this pull request
Nov 19, 2024
AP-Hunt
force-pushed
the
f_support-codebuild-using-codestar-connection
branch
from
November 19, 2024 17:01
e5900a7
to
05c88f2
Compare
AP-Hunt
added a commit
to AP-Hunt/terraform-provider-aws
that referenced
this pull request
Nov 19, 2024
AP-Hunt
force-pushed
the
f_support-codebuild-using-codestar-connection
branch
from
November 19, 2024 17:08
05c88f2
to
aa149b6
Compare
AP-Hunt
added a commit
to AP-Hunt/terraform-provider-aws
that referenced
this pull request
Nov 19, 2024
AP-Hunt
force-pushed
the
f_support-codebuild-using-codestar-connection
branch
from
November 19, 2024 17:32
aa149b6
to
239ad38
Compare
In August 2024, Amazon announced that AWS CodeBuild now supported using the same GitHub app to access source code in CodeBuild as is used in CodePipeline.[1] This commit adds an optional "auth" block to "source" and "secondary_source" blocks in the aws_codebuild_project resource. That configuration, if present, is translated into the "auth" property of the CreateProject API call.[2] [1] https://aws.amazon.com/about-aws/whats-new/2024/08/aws-codebuild-github-apps-access-source-repositories/ [2] https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ProjectSource.html#CodeBuild-Type-ProjectSource-auth
…credential The code already supported this, but it wasn't documented.
AP-Hunt
force-pushed
the
f_support-codebuild-using-codestar-connection
branch
from
November 20, 2024 09:50
239ad38
to
fb1a0d5
Compare
justinretzolk
added
enhancement
Requests to existing resources that expand the functionality or scope.
and removed
needs-triage
Waiting for first response or review from a maintainer.
labels
Nov 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
documentation
Introduces or discusses updates to documentation.
enhancement
Requests to existing resources that expand the functionality or scope.
service/codebuild
Issues and PRs that pertain to the codebuild service.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In August 2024, Amazon announced that AWS CodeBuild now supported using the same GitHub app to access source code in CodeBuild as is used in CodePipeline [1].
This PR adds additional configuration options to the
aws_codebuild_project
resource which get translated into the relevant part of theCreateProject
action in the CodeBuild API [2].It also updates the documentation for the
aws_codebuild_source_credential
resource to include theCODECONNECTIONS
type, which the provider already supported but wasn't documented.I haven't included any additional tests in this change because it's targeting AWS CodeStar Connections, which require a human in the loop to set up. I hope a maintainer can say whether they're happy with this decision, or can suggest a useful test to include.
Relations
Closes #39011
References
[1] https://aws.amazon.com/about-aws/whats-new/2024/08/aws-codebuild-github-apps-access-source-repositories/
[2] https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ProjectSource.html#CodeBuild-Type-ProjectSource-auth
Output from Acceptance Testing
I haven't run the acceptance tests because I'm adding new, optional code branches which the acceptance tests don't cover. It shouldn't have any impact on them.