curl https://raw.githubusercontent.com/danielcbaldwin/aws_assume_profile/master/assume_profile -o /usr/local/bin/assume_profile && chmod +x /usr/local/bin/assume_profile
assume_profile <profile> <command>
Bash script to assume profile in aws credentials file when command or service does not support it.
ShellMIT