In my main.tf
I have an empty aws provider defined
provider aws {}
In the absence of environment variables the aws provider picks the [default]
credentials from ~/.aws/credentials
. However I still get prompted to enter the region:
>terraform plan
provider.aws.region
The region where AWS operations will take place. Examples
are us-east-1, us-west-2, etc.
Enter a value:
How can I get the aws provider to automatically pick up the corresponding region to the [default]
credentials as defined in ~/.aws/config
?