AWS S3 Credentials
To use the S3 connector, we need to create a User with the appropriate permissions. This guide will show you how to create credentials with the minimal permissions you need to access a bucket.
Get Bucket name and region
- Login to your AWS account
- Go to S3
- Find the bucket you want
- Get the name of the bucket and it's region
Create Policy
- Go to Identity and Access Management (IAM)
- On the left hand menu, select Policies under Access management
- Click Create policy in the top right hand corner
- In the Policy editor header, click JSON
- Set the content with the following. Make sure to replace
{your-bucket-name}
with the name of your bucket. -
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:GetObject", "s3:ListBucket" ], "Resource": [ "arn:aws:s3:::{your-bucket-name}/*", "arn:aws:s3:::{your-bucket-name}" ] } ] }
- Click Next
- Give the policy a name like "Ragie bucket access" or whatever you like
- Click Create policy
Create user
- Go to Identity and Access Management (IAM)
- On the left hand menu, select Users under Access management
- Click Create user in the top right hand corner
- Give the user any name you like and click Next in the bottom right
- Under Permissions options select Attach policies directly
- In the Permissions policies search below, search for the policy you added above. In my case I called it "Ragie bucket access" so I search for that - without the quotes.
- Select the policy in the list below and click Next
- Click Create user in the bottom right
Get Credentials
- Go to Identity and Access Management (IAM)
- On the left hand menu, select Users under Access management
- Select the user you created above
- Find and select the Security credentials tab
- Click Create access key
- Select Other for the use-case and click Next
- Click Create access key
- Copy the Access key and Secret access key somewhere. This is very important.
That's it. You now have the
- Access key
- Secret access key
- Region
Updated 1 day ago