python aws cli broker with SAML ADFS

I am looking for python way to connect multiple aws account in a loop to run my API's. AWS authentication is integrated with ADFS.

account= "12345678"
awsconnect= 'aws-adfs login --adfs-host=adfs.test.com --no-ssl-verification --role-arn arn:aws:iam::'+ account +':role/CloudAdmin'

above aws-adfs module I used to connect multiple aws account using for loop but results are not appropriate.

what is the best way to connect multiple aws accounts and run API calls?

Know someone who can answer?

Python 03-02-21, 12:19 p.m. issacthoma
This question is beyond the scope of our tutorials. Please consider asking in an AWS forum
22-04-21, 10:50 a.m. ankitrj.iitb

Log-in to answer to this question.