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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ