1 Answer
- Newest
- Most votes
- Most comments
2
When you try to add a managed policy to a role, you must first create the policy and then open the role and click on Attach policies and search the policy which you created at first place and select that to attach it to your role.
From Attach policies options in a role, you can only attach an existing managed policy, so if you want to attach a managed policy to the role, create it first and then search when Attach policies option takes you to that page.
To a role, you can either attach an existing policy or create an inline policy, as these are two following available options, when you try to add a policy to a role from IAM role directly:
- Attach Policies
- Create inline policy -> If you don't want to create a reusable policy(managed one), you can simply create an inline policy, which would be attached to this role as you create it.
Hope this explanation helps.
Comment here if you have additional questions, happy to help.
Abhishek
Do you have any further questions?