Skip to content

Commit

Permalink
Add aws_codebuild_source_credential resource document
Browse files Browse the repository at this point in the history
  • Loading branch information
teraken0509 committed Feb 21, 2019
1 parent b3cdb37 commit 979bd0d
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/aws.erb
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,10 @@
<a href="/docs/providers/aws/r/codebuild_project.html">aws_codebuild_project</a>
</li>

<li<%= sidebar_current("docs-aws-resource-codebuild-source-credential") %>>
<a href="/docs/providers/aws/r/codebuild_source_credential.html">aws_codebuild_source_credential</a>
</li>

<li<%= sidebar_current("docs-aws-resource-codebuild-webhook") %>>
<a href="/docs/providers/aws/r/codebuild_webhook.html">aws_codebuild_webhook</a>
</li>
Expand Down
48 changes: 48 additions & 0 deletions website/docs/r/codebuild_source_credential.html.markdown
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 979bd0d

Please sign in to comment.