title: Need to make an identical copy of AWS IAM role (including policies and trust relationship it has)
body: <p>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.  </p>
  
  <p>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.</p>
  
  <p>So far, I have searched through stackoverflow and google, but failed to find anything relevant.</p>
  
  <p>Any help is appreciated.</p>