In order to provide access to your AWS bucket to your wp2print website, we must create a new AWS IAM user. Your wp2print website will be configured with the credentials of this new IAM user which will give your wp2print access to store files in your AWS bucket.
Here are the steps to follow:
The policy we are creating grants permission to perform actions on the bucket specified. Below is the policy text:
Important: You must replace the text "mybucketname" with the name you have assigned to your new bucket
{
"Version":"2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::*"
},
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::mybucketname",
"arn:aws:s3:::mybucketname/*"
]
}
]
}
This video illustrates configuring creating the IAM policy and creating a new IAM user account: