patrickchugh / terravision

Terravision creates Professional Cloud Architecture Diagrams from your Terraform code automatically. Supports AWS, Google and Azure.
Mozilla Public License 2.0
824 stars 79 forks source link

Add support for different AWS profiles #107

Open jacopobr opened 9 months ago

jacopobr commented 9 months ago

Currently, Terravision utilizes AWS APIs through the default AWS profile located in .aws/credentials. However, it would greatly enhance the functionality if users could select the profile through which to run the AWS commands. This would provide greater flexibility and control over AWS resources for Terravision users. An AWS CLI example is the following: aws ec2 describe-instances --profile user1

gothrek22 commented 8 months ago

If it uses boto, then you can probably set AWS_PROFILE=desired_profile_name.