Configuring S3

Setting up a buckets

Create a new bucket

If you're going to point DNS directly at the bucket remember to use the actual domain name you're going to use. You can leave all of the configuration options on their defaults.

Configure the bucket for static website hosting.

Now you'll need to set up an IAM user that has permissions to modify the bucket.

Setting up an IAM User

Create a user that only has programatic access. 

Make sure you copy the user secret and key into a safe place since you won't be able to see the secret again.  After the user is created. Go back and add an inline policy to the user so that it has necessary permissions on the s3 bucket you previously created.

Here's the sample policy for easy copying and pasting. You'll need use your own bucket names

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
               "s3:PutObject*",
               "s3:GetObject*",
               "s3:DeleteObject*",
               "s3:ListBucket"
            ],
            "Resource": [
                "arn:aws:s3:::takeshapeconfigurationexample.com",
                "arn:aws:s3:::takeshapeconfigurationexample.com/*"
            ]
        }
    ]
}

Now you're ready to configure a static site in the TakeShape web client to deploy to the s3 bucket.

Join us

Interested in joining the team as coworker or investor?

contact@takeshape.com