How to read AWS credential profiles with Terraform
We often use AWS credentials file when using AWS CLI to switch between different accounts. You can also read AWS credential profiles with Terraform and use it to work with the terraform CLI commands. For that the cleanest method is to use the provider in .tf
file to define the config in your aws provider.