Installation and Upgrade Guide > Part II: Install and Configure for Amazon EMR > Configuration for Amazon EMR > Set S3 Bucket Access Policies
  

Set S3 Bucket Access Policies

To run mappings using a Hadoop connection and the Spark run-time engine, set S3 bucket access policies to allow any user read and write access.
S3 bucket access policies allow you to control user access to S3 buckets and the actions that users can perform.
  1. 1. In the Amazon AWS interface, select the bucket that you want to set policies for.
  2. 2. Click Add bucket policy. Or, if the bucket already has an access policy, click Edit bucket policy.
  3. 3. Type the bucket policy to grant read and write access to all users. Then click Save.
For example,
{
"Version": "<date>",
"Id": "Allow",
"Statement": [
{ "Sid": "<Statement ID>", "Effect": "Allow", "Principal": "*", "Action": "s3:*", "Resource": [ "arn:aws:s3:::<bucket name>/*", "arn:aws:s3:::<bucket name>" ] }
]
}
In the example, Principal is set to "*" to grant access to the bucket to all users.