mmmorris1975 / aws-runas

aws-runas rewritten in Go
MIT License
87 stars 20 forks source link

Merge Request for ec2 mode fix #26

Closed timothyhutz closed 6 years ago

timothyhutz commented 6 years ago

While using ec2 mode with a role ARN's it would create default session cache file which would cause a deny if I switched to a different profile or use another roles ARN's. Non EC2 mode I could use -r flag to remove the cache file if using a different role to assume but when passing other flags like --ec2 the default statement in main() was ignored.