Remove Region Condition From CodeCommit Repo Resource (#8778)

This commit is contained in:
Anshul Sharma 2016-09-12 12:00:46 +05:30 committed by Radek Simko
parent 068585bdba
commit 7150bafb84
2 changed files with 4 additions and 7 deletions

View File

@ -74,13 +74,6 @@ func resourceAwsCodeCommitRepository() *schema.Resource {
func resourceAwsCodeCommitRepositoryCreate(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*AWSClient).codecommitconn
region := meta.(*AWSClient).region
// 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. You are trying to use it on %s", region)
}
input := &codecommit.CreateRepositoryInput{
RepositoryName: aws.String(d.Get("repository_name").(string)),

View File

@ -10,6 +10,10 @@ description: |-
Provides a CodeCommit Repository Resource.
~> **NOTE on CodeCommit Availability**: The CodeCommit is not yet rolled out
in all regions - available regions are listed
[the AWS Docs](https://docs.aws.amazon.com/general/latest/gr/rande.html#codecommit_region).
## Example Usage
```