Amazon S3 guide
We are going to create this policy to increase our security by giving only PutObject permission which is used when uploading files.
Create policy
Service
, type S3
and then select S3
Actions
, type PutObject
and then select both PutObject
and PutObjectAcl
to give only put object permissionResources
, make sure Specific
is selected and then click the Add ARN
linkAny
to give access to all your bucketsNote: You can uncheck Any
later if you prefer to use a specific bucket name instead.
Any
also for object nameAdd
in Add ARN(s)
dialogReview policy
ShareX_PutObject
Create policy
Create New Group
ShareX
Next Step
Policy Type
dropdown filter and select Customer Managed
ShareX_PutObject
if you used that example nameNext Step
Create Group
Add user
Programmatic access
Next: Permissions
ShareX
if you used that example nameNext: Tags
Next: Review
Create user
Important: In this page, either make a record of Access key ID
and Secret access key
somewhere or press Download .csv
to save them as a file. We need these later in ShareX.
Close
You don't need to do these but it is suggested to keep your account secure.
You may need to activate multi-factor authentication and create a password policy which should be easy.
The bucket is where your uploaded files will be stored.
Create bucket
Important: If you are going to use your own domain with S3 then the bucket name should be the same as your CNAME. For example, if you want to use this URL: https://i.example.com/image.png
then bucket name should be i.example.com
. Click here for more info.
Tip: You can use this website to check ping of regions: cloudping.info
Block all public access
option is uncheckedCreate bucket
If you are going to use your own domain then you must configure DNS.
For example, assume that you are using Cloudflare, your bucket name is i.example.com
and it is stored in EU (Frankfurt)
region. Your DNS settings will then be:
CNAME
i
i.example.com.s3.eu-central-1.amazonaws.com
You can find a list of region endpoints from ShareX main window -> Destinations -> Destination settings -> Amazon S3 tab -> Endpoints
.
So the target should be {bucketname}.{endpoint}
Check here for more information.
Destinations -> Destination settings
Amazon S3
tabaccess key ID
and secret access key
which you noted down previously%y/%mo
which creates sub-folders such as 2020/04
Use custom domain
and fill the text box for example: https://i.example.com
Now you are ready to use Amazon S3 in ShareX!