How to rename an AWS customer IAM policy?

Viewed 7155

I have created a custom IAM policy, now I'm trying to rename it but I cannot find an option for it. The policy was not attached to anything yet. Is it possible to rename it or should I create a new policy with the correct name and delete the old one?

2 Answers

You can now do it using the AWS command line tool with the update-policy

aws organizations update-policy \
    --policy-id p-examplepolicyid111 \
    --name Renamed-Policy \
    --description "This description replaces the original."
Related