Skip to content

Commit

Permalink
Merge pull request #16679 from hashicorp/ecs-credentials
Browse files Browse the repository at this point in the history
provider: Adds support for ECS authentication URI for acceptance tests
  • Loading branch information
gdavison authored Dec 9, 2020
2 parents f7cabdb + dfda2fe commit 7900b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ func testAccPreCheck(t *testing.T) {
// Since we are outside the scope of the Terraform configuration we must
// call Configure() to properly initialize the provider configuration.
testAccProviderConfigure.Do(func() {
if os.Getenv("AWS_PROFILE") == "" && os.Getenv("AWS_ACCESS_KEY_ID") == "" {
t.Fatal("AWS_ACCESS_KEY_ID or AWS_PROFILE must be set for acceptance tests")
if os.Getenv("AWS_PROFILE") == "" && os.Getenv("AWS_ACCESS_KEY_ID") == "" && os.Getenv("AWS_CONTAINER_CREDENTIALS_FULL_URI") == "" {
t.Fatal("AWS_ACCESS_KEY_ID, AWS_PROFILE, or AWS_CONTAINER_CREDENTIALS_FULL_URI must be set for acceptance tests")
}

if os.Getenv("AWS_ACCESS_KEY_ID") != "" && os.Getenv("AWS_SECRET_ACCESS_KEY") == "" {
Expand Down

0 comments on commit 7900b33

Please sign in to comment.