A company wants to allow full access to an Amazon S3 bucket for a particular user.
Which element in the S3 bucket policy holds the user details that describe who needs access to the S3 bucket?
A. Principal
B. Action
C. Resource
D. Statement
A company wants to allow full access to an Amazon S3 bucket for a particular user.
Which element in the S3 bucket policy holds the user details that describe who needs access to the S3 bucket?
A. Principal
B. Action
C. Resource
D. Statement
answer is A
Should be A.
{
“Version”:”2012-10-17″,
“Statement”:[
{
“Sid”:”AddCannedAcl”,
“Effect”:”Allow”,
“Principal”: {“AWS”: [“arn:aws:iam::111122223333:root”,”arn:aws:iam::444455556666:root”]},
“Action”:[“s3:PutObject”,”s3:PutObjectAcl”],
“Resource”:”arn:aws:s3:::DOC-EXAMPLE-BUCKET/*”,
“Condition”:{“StringEquals”:{“s3:x-amz-acl”:[“public-read”]}}
}
]
}