Simple Python script to get temporary AWS CLI role creds via STS, using OneLogin as the SAML IdP. Based on the samlapi_gsuite, which in turn was based on the generic script provided by AWS.
If not using OTP, just hit enter.
Please follow the step by step guide for setup: https://wisersolutions.atlassian.net/wiki/spaces/ENG/pages/208503237/Setting+up+OneLogin+SAML+for+AWS+CLI