Added the documentation for the CodeCommit repository
This commit is contained in:
parent
2ad006ab50
commit
14604e432e
|
@ -79,7 +79,7 @@ func resourceAwsCodeCommitRepositoryCreate(d *schema.ResourceData, meta interfac
|
||||||
// This is a temporary thing - we need to ensure that CodeCommit is only being run against us-east-1
|
// This is a temporary thing - we need to ensure that CodeCommit is only being run against us-east-1
|
||||||
// As this is the only place that AWS currently supports it
|
// As this is the only place that AWS currently supports it
|
||||||
if region != "us-east-1" {
|
if region != "us-east-1" {
|
||||||
return fmt.Errorf("CodeCommit can only be used with US-East-1")
|
return fmt.Errorf("CodeCommit can only be used with us-east-1. You are trying to use it on %s", region)
|
||||||
}
|
}
|
||||||
|
|
||||||
input := &codecommit.CreateRepositoryInput{
|
input := &codecommit.CreateRepositoryInput{
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
---
|
||||||
|
layout: "aws"
|
||||||
|
page_title: "AWS: aws_codecommit_repository"
|
||||||
|
sidebar_current: "docs-aws-resource-codecommit-repository"
|
||||||
|
description: |-
|
||||||
|
Provides a CodeCommit Repository Resource.
|
||||||
|
---
|
||||||
|
|
||||||
|
# aws\_codecommit\_repository
|
||||||
|
|
||||||
|
Provides a CodeCommit Repository Resource.
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
```
|
||||||
|
resource "aws_codecommit_repository" "test" {
|
||||||
|
repository_name = "MyTestRepository"
|
||||||
|
description = "This is the Sample App Repository"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Argument Reference
|
||||||
|
|
||||||
|
The following arguments are supported:
|
||||||
|
|
||||||
|
* `repository_name` - (Required) The name for the repository. This needs to be less than 100 characters.
|
||||||
|
* `description` - (Optional) The description of the repository. This needs to be less than 1000 characters
|
||||||
|
* `default_branch` - (Optional) The default branch of the repository. The branch specified here needs to exist.
|
||||||
|
|
||||||
|
## Attributes Reference
|
||||||
|
|
||||||
|
The following attributes are exported:
|
||||||
|
|
||||||
|
* `repository_id` - The ID of the repository
|
||||||
|
* `arn` - The ARN of the repository
|
||||||
|
* `clone_url_http` - The URL to use for cloning the repository over HTTPS.
|
||||||
|
* `clone_url_ssh` - The URL to use for cloning the repository over SSH.
|
|
@ -43,6 +43,16 @@
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li<%= sidebar_current(/^docs-aws-resource-codecommit/) %>>
|
||||||
|
<a href="#">CodeCommit Resources</a>
|
||||||
|
<ul class="nav nav-visible">
|
||||||
|
|
||||||
|
<li<%= sidebar_current("docs-aws-resource-codecommit-repository") %>>
|
||||||
|
<a href="/docs/providers/aws/r/code_commit_repository.html">aws_codecommit_repository</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current(/^docs-aws-resource-codedeploy/) %>>
|
<li<%= sidebar_current(/^docs-aws-resource-codedeploy/) %>>
|
||||||
<a href="#">CodeDeploy Resources</a>
|
<a href="#">CodeDeploy Resources</a>
|
||||||
<ul class="nav nav-visible">
|
<ul class="nav nav-visible">
|
||||||
|
@ -69,6 +79,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li<%= sidebar_current(/^docs-aws-resource-dynamodb/) %>>
|
<li<%= sidebar_current(/^docs-aws-resource-dynamodb/) %>>
|
||||||
<a href="#">DynamoDB Resources</a>
|
<a href="#">DynamoDB Resources</a>
|
||||||
<ul class="nav nav-visible">
|
<ul class="nav nav-visible">
|
||||||
|
|
Loading…
Reference in New Issue