turbot / terraform-provider-turbot

Terraform Turbot provider
https://www.terraform.io/docs/providers/turbot/
Mozilla Public License 2.0
7 stars 4 forks source link

TURBOT_PROFILE environment variable is not being respected. #96

Closed kaidaguerre closed 4 years ago

kaidaguerre commented 4 years ago

If TURBOT_PROFILE is set, but TURBOT_ACCESS_KEY, TURBOT_SECRET_KEY and TURBOT_WORKSPACE are not set, and no default profile is set, you get the error

No credentials are set - either set TURBOT_ACCESS_KEY, TURBOT_SECRET_KEY and TURBOT_WORKSPACE or populate the file ~/.config/turbot/credentials.yml

Fix this and verify the precedence of credentials is working and consistent with AWS

terraform-provider-turbot_v1.6.1. Terraform v0.12.27

RupeshPatil20 commented 4 years ago

Case - No default profile set & no env vars TURBOT_ACCESS_KEY, TURBOT_SECRET_KEY & TURBOT_WORKSPACE set. TURBOT_PROFILE is set.

Behaviour - Provider picked up the profile from ~/.config/turbot/credentials.yml and successfully created client

Turbot precedence for Credentials

AWS Provider Credentials