1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
1
The error you're getting sounds like you're trying to use a resource policy as an identity-based policy. Since these policies are attached to a principal already, the Principal
field is not required. More info here: https://aws.amazon.com/premiumsupport/knowledge-center/iam-principal-policy/
The policy above should be applied as the bucket policy for the bucket you'd like to share, and the identity-based policy for the user/role should look more like:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetObject"
],
"Resource": "arn:aws:s3:::cmaq-database/*"
}
]
}
con risposta 2 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 5 mesi fa
- AWS UFFICIALEAggiornata 2 anni fa
Hi Ed. Let me read the link to make sure I understand what you mean. Thanks.