Problem
It would be nice to be able to specify AWS profile via query string, like ?profile=my_profile.
At the moment the only possible way to do it is via an env var AWS_PROFILE (or AWS_DEFAULT_PROFILE), which is very inconvenient and doesn't work well if you have multiple AWS accounts and multiple projects.
Solution
It won't require any SDK updates, just a couple of code changes.
As per the doc, it will need Profile: xxx here.
The profile can be parsed in here with renaming the ConfigFromURLParams function to something more appropriate like SessionFromURLParams .
I'd be keen to make a PR if the idea sounds good.
Problem
It would be nice to be able to specify AWS profile via query string, like
?profile=my_profile.At the moment the only possible way to do it is via an env var
AWS_PROFILE(orAWS_DEFAULT_PROFILE), which is very inconvenient and doesn't work well if you have multiple AWS accounts and multiple projects.Solution
It won't require any SDK updates, just a couple of code changes.
As per the doc, it will need
Profile: xxxhere.The profile can be parsed in here with renaming the
ConfigFromURLParamsfunction to something more appropriate likeSessionFromURLParams.I'd be keen to make a PR if the idea sounds good.