My company uses what I assume is federated access through SSO to connect to AWS, we have above 50 AWS accounts that I need to loop through to pull cost related data and I find myself a bit stuck.
I'm using PowerShell as a means to pull the information and unfortunately any credentials (access key/secret access key) obtained through the Get credentials page for the accounts appear to be temporary, defeating the purpose of the automation.
Using the below cmdlet, I am given the option of 20 AWS accounts, if I specify an account that doesn't appear in the list, I can't proceed, so I just wanted to see if there was a method I could connect to more than 20 AWS accounts using SSO through PowerShell in an automated manner.
Initialize-AWSSSOConfiguration