Create a gist now

Instantly share code, notes, and snippets.

@mmcgrana /bucket-iam.md Secret
Created Feb 17, 2012

Navigate in the AWS console to the IAM credentials panel.

Create a IAM user with the desired bucket name.

Capture the generated credentials.

Attach a user policy of the following form named <bucket>-bucket-access:

{
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:*",
      "Resource": [
        "arn:aws:s3:::<bucket>",
        "arn:aws:s3:::<bucket>/*"
      ]
    }
  ]
}

Create that bucket with your account-level credentials:

$ s3 create <bucket>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment