Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Attach a Policy to the IAM Role
After you create an Identity and Access Management (IAM) role for your S3 bucket, create
a policy and attach the policy to the IAM role. Policies define the actions for IAM roles and
users.
| Available in: all editions that have Loyalty Management enabled |
- Log in to your AWS Management Console.
- From the Services menu, find and select IAM.
- From the navigation menu, click Roles.
- Click the IAM role that you created.
-
Under Permissions, from Add permissions, select Attach
policies.
If you see the Create policy button instead of the Attach policies button, click Create policy and follow the subsequent steps.
- From the navigation menu, under Access management, click Policies, and then click Create policy.
- From Service, select S3.
- In the Actions allowed list, find and select the PutObject write action.
- Under Resources, click Add ARNs.
-
Specify the ARNs.
- Enter your S3 bucket name as the resource bucket name.
- In Resource object name, select Any object name.
- Click Add ARNs.
- Click Next.
-
On the Review and create page, enter your policy name and description, and then click
Create policy.
The policy is created, you can now attach this policy to the IAM role.
- On the Policies page, find and select your policy.
- Click Entities Attached.
- Under Attached as a permissions policy, click Attach, and select the IAM role that you created.
- Click Attach policy.
- From the navigation menu, under Access management, click Roles, and then select the role that you created.
- Under Permissions, from Add permissions, select Attach Policies.
- Select the AdministratorAccess option, and then click Add permissions.