diff --git a/website/aws.erb b/website/aws.erb index 7e8eadb23b8c..2d399162e951 100644 --- a/website/aws.erb +++ b/website/aws.erb @@ -717,6 +717,10 @@ aws_codebuild_project + > + aws_codebuild_source_credential + + > aws_codebuild_webhook diff --git a/website/docs/r/codebuild_source_credential.html.markdown b/website/docs/r/codebuild_source_credential.html.markdown new file mode 100644 index 000000000000..e2488a3b4810 --- /dev/null +++ b/website/docs/r/codebuild_source_credential.html.markdown @@ -0,0 +1,48 @@ +--- +layout: "aws" +page_title: "AWS: aws_codebuild_source_credential" +sidebar_current: "docs-aws-resource-codebuild-source-credential" +description: |- + Provides a CodeBuild Source Credential resource. +--- + +# aws_codebuild_project + +Provides a CodeBuild Source Credentials Resource. + +## Example Usage + +```hcl +resource "aws_codebuild_source_credential" "example" { + auth_type = "PERSONAL_ACCESS_TOKEN" + server_type = "GITHUB" + token = "example" +} +``` + +### Bitbucket Server Usage + +```hcl +resource "aws_codebuild_source_credential" "example" { + auth_type = "BASIC_AUTH" + server_type = "BITBUCKET" + token = "example" + user_name = "test-user" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `auth_type` - (Required) The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API. +* `server_type` - (Required) The source provider used for this project. +* `token` - (Required) For `GitHub` or `GitHub Enterprise`, this is the personal access token. For `Bitbucket`, this is the app password. +* `user_name` - (Optional) The Bitbucket username when the authType is `BASIC_AUTH`. This parameter is not valid for other types of source providers or connections. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - The ARN of Source Credential. +* `arn` - The ARN of Source Credential.