diff --git a/builtin/providers/aws/resource_aws_codecommit_repository.go b/builtin/providers/aws/resource_aws_codecommit_repository.go index 3f15ac409d0e..ac2e1b1b3d47 100644 --- a/builtin/providers/aws/resource_aws_codecommit_repository.go +++ b/builtin/providers/aws/resource_aws_codecommit_repository.go @@ -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{ diff --git a/website/source/docs/providers/aws/r/code_commit_repository.html.markdown b/website/source/docs/providers/aws/r/code_commit_repository.html.markdown new file mode 100644 index 000000000000..84a161f5d95d --- /dev/null +++ b/website/source/docs/providers/aws/r/code_commit_repository.html.markdown @@ -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. \ No newline at end of file diff --git a/website/source/layouts/aws.erb b/website/source/layouts/aws.erb index a12f559728ce..e9f773c29964 100644 --- a/website/source/layouts/aws.erb +++ b/website/source/layouts/aws.erb @@ -43,6 +43,16 @@ + > + CodeCommit Resources + + + > CodeDeploy Resources + > DynamoDB Resources