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
已提问 2 年前932 查看次数
2 回答
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
已回答 2 年前
0
已接受的回答

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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则