0
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'
os.system(awsconnect)

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

Log-in to answer to this question.