What is the difference between inline policy and managed policy in AWS?

 Inline Policy :

This policy is manually created by you in two ways one in JSON format and one is visual editor format. And this policy will be applicable to only one specific role, in which role you have created it.

If you want to use the same inline policy to other role that is not possible. Here is the screenshot for reference.

Managed Policy :

This policy is already created by AWS or we can also create this policy under policy section for IAM. And this policy can be used by other role also.

Steps for Creating the Inline policy :

1] Open the IAM service in AWS
2] Select the Roles from left hand side in IAM Dashboard, Select the roles in which you have to create the Inline policy.
3] In the right hand side we will see add inline policy. select that 'Add Inline policy'
4] select from the visual editor, service, action, resources and click on the review policy.
5] Give the name of policy and save it.

Comments

Popular posts from this blog

What is the difference between the Roles and Policy in AWS.

How will you use the ec2 instances if you lost .pem key when you installed first time? How to login now to that ec2 instance.

Overview of SSL/TLS and encryption