Setting AWS permissions for buckets in S3 for groups.
AWS cloud service has option to setup policy for buckets as well as for groups.
There is one issue with setting up bucket permission policy.One can not define policy for a group as principle. Buckets policy permissions can be defined for user, roles etc etc but not for groups. S3 bucket policy does supports predefined groups but not user created groups.
So if you have to restrict a particular group of users to access the S3 bucket you can define a group policy with restriction to particular group.
if you want to access a group of users to not access particular bucket and let them access the rest of buckets.You have to use the name of buckets in resource.
If you have multiple buckets then you can use a standardize name pattern for bucket names and restrict users by using wild card in policy definition.