nccgroup / Scout2

Security auditing tool for AWS environments
http://nccgroup.github.io/Scout2/
GNU General Public License v2.0
1.73k stars 300 forks source link

Role switching with credentials.csv not working #208

Closed jjegg closed 7 years ago

jjegg commented 7 years ago

Role switching does not work when passing in the credentials through a csv.

l01cd3v commented 7 years ago

Yeah, this is intended; support for CSV was just meant to enable one-off runs. If you want to use role switching, you'll need to configure a source profile and a role profile, just like what you'd do when using the AWS CLI.

jjegg commented 7 years ago

What I was trying to say, is with the source and role profile configured within .aws/config the role switching does not work when you are passing the credentials in the csv.

l01cd3v commented 7 years ago

Yes, this is on purpose. If you want the ability to switch roles, you'll need to configure your credentials in the .aws/credentials config file.