To offload your media to Amazon S3, Media Library Manager needs credentials to talk to your AWS account. These come as two values: an Access Key ID and a Secret Access Key.
This guide walks you through creating a dedicated AWS user for the plugin and generating those keys. It takes about 5 minutes.
What you’ll need
- An AWS account (free to create)
- Admin access to your WordPress site
Step 1: Sign in to the AWS Console
Already have an AWS account? Sign in to the AWS Management Console.
No account yet? Create one at aws.amazon.com and then sign in.
Step 2: Create a new IAM user
Instead of using your main AWS account for the plugin, create a separate IAM user just for Media Library Manager. If the keys are ever exposed, you can delete this one user without affecting anything else.
- In the console search bar, type IAM and open it.
- In the left sidebar, click Users, then click Create user.
- Enter a User name, for example
media-library-manager. - Leave Provide user access to the AWS Management Console unchecked. This user only needs API access, not a login.
- Click Next.

Step 3: Give the user S3 permissions
The new user needs permission to manage buckets and objects in S3.
- Select Attach policies directly.
- In the search box, type
AmazonS3FullAccess. - Tick the checkbox next to AmazonS3FullAccess.
- Click Next.

Why full access? We recommend giving this user full access to S3 and nothing else. It helps you avoid permission-related errors while setting up Media Library Manager. Once everything works, you can restrict the user to specific buckets with a custom policy.
- On the review page, tags are optional. Click Create user.

Step 4: Create the access key
- From the Users list, click the user you just created.
- Open the Security credentials tab.
- Scroll to the Access keys section and click Create access key.

- For the use case, select Application running outside AWS, then click Next.
- Adding a description tag is optional (for example,
Media Library Manager - mysite.com). Click Create access key.

- AWS now shows your Access Key ID and Secret Access Key. Click Download .csv file and keep it somewhere safe, then click Done.

⚠️ Save the Secret Access Key now. AWS only shows it once. If you lose it, you can’t recover it. You’d need to delete the old key and create a new one.
Step 5: Add the keys to Media Library Manager
You have two options.
Option A: wp-config.php (recommended)
Defining the keys in your wp-config.php file keeps them out of your database, which is the more secure choice.
Add the following above the line that says /* That's all, stop editing! Happy publishing. */:
php
define( 'MLM_AWS_ACCESS_KEY_ID', 'YOUR_ACCESS_KEY_ID' );
define( 'MLM_AWS_SECRET_ACCESS_KEY', 'YOUR_SECRET_ACCESS_KEY' );
⚠️ Constants defined below the “stop editing” line won’t be read.
When the constants are present, Media Library Manager skips the credentials screen and goes straight to bucket selection.
Option B: Enter them in the plugin settings
- In WP Admin Panel, go to Media → Media Library Manager → Offload → Amazon S3
- Paste your Access Key ID and Secret Access Key
- Save and Connect
- Select/Create bucket

This stores the keys in your database. It works, but it’s less secure than Option A.
And that’s all. If your keys are correct, then you will see all the setting related to offloading.

Security best practices
- Never share your keys in support tickets, screenshots, or public repos. Blur them in any screenshot.
- Use a dedicated IAM user, not your AWS root account.
- Rotate keys if you suspect they’ve leaked: go to the user’s Security credentials tab, create a new key, update your site, then delete the old key.
- Prefer
wp-config.phpover saving credentials in the database.
