1. Log in to your Amazon Web Services console - https://console.aws.amazon.com/console/home

  2. After logging in, search for  S3 and click on the result as shown in the below image to open your Amazon S3 console.

  3. Click Create Bucket button to create a new bucket.

  4. Enter a Bucket name, select a Region and click Next.


  5. Here click the Create Bucket button. And your S3 bucket is created now.

  6. Click on your username which you can find it on the top right corner of your page. Click on Security Credentials in the drop-down.

  7. Click Users from your left menu. You can create a new user or use an existing one.
    To create a new user click on the Add User button. Enter your Username and choose the access types as Programmatic Access. Click Next: Permissions button.

    A new tab will be opened for creating the policy. Add the below JSON and save the policy as "infinitewp"


        "Version": "2012-10-17",
        "Statement": [
                "Sid": "AllowBucketOnly",
                "Action": [
                "Effect": "Allow",
                "Resource": [

    Note: Make sure you replace "YOUR-BUCKET-NAME" with your bucket name in the above policy.

    Once you build the policy, close the current tab and go to the tab where you have been creating the new user.
    Here click the refresh icon and choose the policy. Click Next: Review and Create User.
    Now you can find the Access Key ID and Secret Access Key.

  8. If you want to use the existing user, click on the user whose access key you want to use.

  9. Click Add permissions and choose the policy which we created earlier. If you haven't created the policy yet, Go to step number six and follow the instructions to add the permission.

  10. Now, click on the security credentials tab to view your Access Key ID and Secret Access Key.