Use AWS Toolkit in VSC with role switching

0

I have to switch roles and for the cli I use aws-vault which works perfectly. In Visual Studio Code I would like to use the AWS Toolkit but it does not allow me to switch roles, it only provides using different accounts. Is there a way to switch roles so I can use AWS Toolkit? Thanks!

peterl
asked 2 years ago911 views
2 Answers
1

Yes, this works perfectly. The AWS Toolkit sees the profiles in my credentials file and not in my config file. Now, following the instructions in the StackOverflow post, I've added a profile in my credentials file and now I can switch role. Awesome! Thanks!

peterl
answered 2 years ago
0
Accepted Answer

Hello.

The following Stack Overflow response may be helpful, and we would appreciate it if you could check if we can fulfill your request here. [1]

[1] amazon web services - How to switch or assume role from Visual Studio to access AWS resource - Stack Overflow
https://stackoverflow.com/questions/65517748/how-to-switch-or-assume-role-from-visual-studio-to-access-aws-resource

I have actually been able to switch roles to another account in Visual Studio Code.

my VSC

profile picture
mn87
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions