I have a IAM role (with many policies and a trust relationship in it). I used this in building a AWS Cognito User Pool. However, this IAM role will be deleted soon.
Making a copy manually will be a chore and also not repeatable. I would like to make a copy either via CLI or script of some other repeatable way.
So far, I have searched through stackoverflow and google, but failed to find anything relevant.
Any help is appreciated.