Skip to content

Commit

Permalink
Added the documentation for the CodeCommit repository
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 committed Sep 18, 2015
1 parent b3ac666 commit 586cbdc
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
// As this is the only place that AWS currently supports it
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{
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
11 changes: 11 additions & 0 deletions website/source/layouts/aws.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@
</ul>
</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-dynamodb/) %>>
<a href="#">DynamoDB Resources</a>
Expand Down

0 comments on commit 586cbdc

Please sign in to comment.