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
feita há 2 anos932 visualizações
2 Respostas
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
respondido há 2 anos
0
Resposta aceita

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
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas