Skip to content

Commit

Permalink
Update the recommended s3 policy in s3 offload media (#8731)
Browse files Browse the repository at this point in the history
* Update 07-wordpress-s3.md

* adds updated screenshot for new policy and note regarding listing buckets for plugin

* adds cleaner screenshot

* deleting unused png

---------

Co-authored-by: Miriam Goldman <miriamgoldman@pantheon.io>
Co-authored-by: Steve Persch <steve.persch@pantheon.io>
  • Loading branch information
3 people authored Jun 14, 2024
1 parent d3e6a9e commit c2f19b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions source/content/guides/wordpress-developer/07-wordpress-s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,31 +75,33 @@ You must configure the service within your [AWS Management Console](https://cons
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ObjectLevel",
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject"
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject",
"s3:PutObjectAcl"
],
"Resource": "arn:aws:s3:::bucketname/*"
},
{
"Sid": "BucketLevel",
"Effect": "Allow",
"Action": [
"s3:GetBucketPublicAccessBlock",
"s3:GetBucketOwnershipControls",
"s3:ListBucket",
"s3:GetBucketLocation"
"s3:GetBucketPublicAccessBlock",
"s3:PutBucketPublicAccessBlock",
"s3:PutBucketOwnershipControls",
"s3:GetBucketOwnershipControls",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::bucketname"
}
]
}
```

![Create AWS S3 access step 2](../../../images/guides/s3-access2.png)
![Create AWS S3 access step 2](../../../images/guides/s3-access2-updated.png)

1. Enter your policy name in the **Policy name** field (for example, Pantheons3Access) and then click **Create Policy**.

Expand All @@ -117,7 +119,7 @@ You must configure the service within your [AWS Management Console](https://cons

<Alert title="Note" type="info">

Steps 1-3 create a custom AWS User policy with read and write permissions to the specific bucket assigned to your site. You can select the **AmazonS3FullAccess** policy to replace the custom policy that you created if you require higher permissions.
Steps 1-3 create a custom AWS User policy with read and write permissions to the specific bucket assigned to your site. You can select the **AmazonS3FullAccess** policy to replace the custom policy that you created if you require higher permissions (example: listing buckets in the WP Offload Media plugin).

</Alert>

Expand Down
Binary file added source/images/guides/s3-access2-updated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed source/images/guides/s3-access2.png
Binary file not shown.

0 comments on commit c2f19b9

Please sign in to comment.