Manage Your Server Accounts To Upload Landing Pages

Step By Step Instructions with Screenshots


  1. Login to your AWS console and select IAM
  1. Select USERS from the left hand panel
  1. Select ADD USER from the top button bar
  1. Give your new user a name and provide Programmatic Access to this user as shown in the following screenshot. Select Next: Permissions button.
  1. Now we need to give this user access to your S3 bucket. Select Attach Existing Policies Directly option and click on Create Policy button as shown below
  1. This opens a new browser tab. Click on the Create Your Own Policy button
  1. You will now see a window where you can create your policy. Give your policy a name and some description as shown. Copy and paste following text into the policy document. Make sure that you enter your own bucket name in the provide placeholder.
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:GetBucketLocation",
                "s3:ListAllMyBuckets",
                "s3:GetObjectAcl",
                "s3:PutObjectAcl"
            ],
            "Resource": "arn:aws:s3:::*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "s3:ListBucket"
            ],
            "Resource": [
                "arn:aws:s3:::your_bucket_name_goes_here"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "s3:PutObject",
                "s3:GetObject",
                "s3:DeleteObject"
            ],
            "Resource": [
                "arn:aws:s3:::your_bucket_name_goes_here/*"
            ]
        }
    ]
}
  1. Validate Policy by clicking the button. If everything is ok, you will see a success message on the top of your screen as shown here. Click on Create Policy button to create the policy. The browser will close the tab and take you back to your Add User navigation screen.
  1. On this screen click on Refresh button to update the list of the policies so that you can see your recently created policy. Since there are many policies, search for your policy by typing a search term that matches with your policy name. You should see your newly created policy. Select the checkbox so that this policy is attached to the user you are trying to create. When done, click on the Next: Review button.
  1. Review all the information and if it looks ok, click on Create User button.
  1. The user is now created. Save and copy the Access ID and Secret Key in a secure location on your pc. Remember that you will see this information only one time. AWS will not show you the keys ever again. If you lose this information, you will have to generate a new set of keys and invalidate the lost keys (for security reasons).
  1. Next steps involve importing these keys into the Anstrex platform. Select Manage Server Accounts from the drop down menu under your user name.
  1. Click on Add A New Account button
  1. Give your new account a nickname. Copy and paste the credentials from STEP 11 as shown below. Check the credentials by clicking on the button
  1. If the credentials are valid, you will see a success message on the top. Now, select the bucket that you would like to upload to from the drop down. Remember, these credentials allow us only to list all the buckets but full read/write access to only buckets that were listed on your policy. So, if you don't select the correct bucket, the files cannot be uploaded. Click on the save button to save your credentials.
  1. Once the credentials have been saved, you should see a success message as shown below. You can now close the overlay.
  1. Now you will see your account listed. It is now ready for uploading landing pages.

Remember that you can create as many accounts as you want. You can point each account to a different bucket to quickly upload appropriate landing page to the bucket of your choice.

Copyright © 2016 Anstrex. All Rights Reserved.