dome9 / onboarding-scripts

A public repository with scripts and tools for mass / automated onboarding of cloud accounts (AWS,Azure,GCP)
23 stars 26 forks source link

ignore assume_role errors #4

Open via-jordan-sokolic opened 4 years ago

via-jordan-sokolic commented 4 years ago

Wrap assume_role in try/except and continue if ClientError is encountered. This allows for automatic onboarding of all org accounts in one run, skipping accounts for which target role doesn't yet exist.