I have permission set created in AWS, and I am creating an INLINE policy where I want to give access to a specific bucket .
when I am trying below it works fine which is something I don’t want, however when add resource to like and resource arn arn:aws:s3:::bucket_name
or arn:aws:s3:::*data*
it shows me insufficient privilege and I am not able to access.
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"*"
]
}
]
}
policy I am using which Is not working
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::data*",
"arn:aws:s3:::data*/*"
]
}
]
}
}
2
Answers
The policy should be:
here is what i do in summary…
create the permission set… create the inline policy, then attach the policy
I hope this works for you