Showing posts with label AWS take backup of all IAM Roles and Policies. Show all posts
Showing posts with label AWS take backup of all IAM Roles and Policies. Show all posts

Wednesday, March 4, 2020

AWS take backup of all IAM Roles and Policies


If you want to take backup of your all IAM roles and policies, here is solution for you.

1. Configure aws cli with access key and secret key.
aws configure
2. Save all roles and policies in json file
aws iam get-account-authorization-detail > output.json
There are several ways to read this json file using a script. 

Now You have complete data of your role and policies.