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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠