diff --git a/builtin/providers/aws/config.go b/builtin/providers/aws/config.go index 5ff64450c4d2..d9631fcc390a 100644 --- a/builtin/providers/aws/config.go +++ b/builtin/providers/aws/config.go @@ -266,7 +266,7 @@ func (c *Config) Client() (interface{}, error) { client.cloudwatchconn = cloudwatch.New(sess) client.cloudwatcheventsconn = cloudwatchevents.New(sess) client.cloudwatchlogsconn = cloudwatchlogs.New(sess) - client.codecommitconn = codecommit.New(usEast1Sess) + client.codecommitconn = codecommit.New(sess) client.codedeployconn = codedeploy.New(sess) client.dsconn = directoryservice.New(sess) client.dynamodbconn = dynamodb.New(dynamoSess) diff --git a/builtin/providers/aws/resource_aws_codecommit_repository_test.go b/builtin/providers/aws/resource_aws_codecommit_repository_test.go index 9708bedac220..a46405beee15 100644 --- a/builtin/providers/aws/resource_aws_codecommit_repository_test.go +++ b/builtin/providers/aws/resource_aws_codecommit_repository_test.go @@ -161,9 +161,6 @@ func testAccCheckCodeCommitRepositoryDestroy(s *terraform.State) error { func testAccCodeCommitRepository_basic(rInt int) string { return fmt.Sprintf(` -provider "aws" { - region = "us-east-1" -} resource "aws_codecommit_repository" "test" { repository_name = "test_repository_%d" description = "This is a test description" @@ -173,9 +170,6 @@ resource "aws_codecommit_repository" "test" { func testAccCodeCommitRepository_withChanges(rInt int) string { return fmt.Sprintf(` -provider "aws" { - region = "us-east-1" -} resource "aws_codecommit_repository" "test" { repository_name = "test_repository_%d" description = "This is a test description - with changes" @@ -185,9 +179,6 @@ resource "aws_codecommit_repository" "test" { func testAccCodeCommitRepository_with_default_branch(rInt int) string { return fmt.Sprintf(` -provider "aws" { - region = "us-east-1" -} resource "aws_codecommit_repository" "test" { repository_name = "test_repository_%d" description = "This is a test description"