Sha256: d9340fe3563f37bf29637d1795d7e4e202fb71daf85868f87941b21de779e034

Contents?: true

Size: 1.25 KB

Versions: 101

Compression:

Stored size: 1.25 KB

Contents

# Setting up AWS credentials

Before starting to use s3\_website, you need to create AWS credentials.

## Easy setup

* Go to [AWS IAM console](https://console.aws.amazon.com/iam)
* Create a new user that has full permissions to the S3 and CloudFront services
* Call `s3_website cfg create` and place the credentials of your new AWS user
  into the *s3_website.yml* file
* Read the main documentation for further info

## Limiting the permissions of the credentials

AWS IAM offers multiple ways of limiting the permissions of a user. Below is one
way of configuring the limitations and yet retaining the capability to use all
s3\_website features.

If you know the hostname of your public website (say `my.website.com`), perform the
following steps:

* Create a user that has full permissions to the S3 bucket
* In addition, let the user have full permissions to CloudFront

Here is the IAM Policy Document of the above setup:

```json
{
  "Statement": [
    {
      "Action": [
        "cloudfront:*"
      ],
      "Effect": "Allow",
      "Resource": [
        "*"
      ]
    },
    {
      "Action": [
        "s3:*"
      ],
      "Effect": "Allow",
      "Resource": [
        "arn:aws:s3:::my.website.com",
        "arn:aws:s3:::my.website.com/*"
      ]
    }
  ]
}
```

Version data entries

101 entries across 101 versions & 2 rubygems

Version Path
s3_website_monadic-0.0.27 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.26 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.25 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.24 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.23 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.22 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.21 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.20 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.19 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.18 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.16 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.15 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.14 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.13 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.12 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.11 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.9 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.8 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.7 additional-docs/setting-up-aws-credentials.md
s3_website_monadic-0.0.6 additional-docs/setting-up-aws-credentials.md