diff --git a/builtin/providers/aws/resource_aws_codecommit_repository.go b/builtin/providers/aws/resource_aws_codecommit_repository.go index 83d32f42b..c9b2bd2dc 100644 --- a/builtin/providers/aws/resource_aws_codecommit_repository.go +++ b/builtin/providers/aws/resource_aws_codecommit_repository.go @@ -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)), 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 index 84a161f5d..ff6f2ac90 100644 --- a/website/source/docs/providers/aws/r/code_commit_repository.html.markdown +++ b/website/source/docs/providers/aws/r/code_commit_repository.html.markdown @@ -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 ```