IAM-Create a policy to access only 2 objects in a specific bucket.

 

Policy

  1. Create a policy to access only 2 objects in a specific bucket.

1)     Create IAM user --> abc

2)     Select abc user then go to permissions

3)    Click on add permissions and click create inline policy



4)    Select a service --> service --> S3


5)    In actions allowed --> effect – select allow
select Actions
GetBucketLocation, ListAllMyBuckets, ListBucket, GetObject




6)    In Resources --> select specific
In Bucket 
--> click Add ARNs --> then add bucket arn no.
In Object 
--> click Add ARNs --> then add objects arn no.



7)    Enter policy name --> click on create policy



Comments

Popular posts from this blog

IAM-Create a policy to place the user in a group only.

IAM-Create a policy to deny the access of Specific bucket.