Skip to content

Instantly share code, notes, and snippets.

@mmcgrana
Created February 17, 2012 20:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmcgrana/34e08aaf5e5e87814c72 to your computer and use it in GitHub Desktop.
Save mmcgrana/34e08aaf5e5e87814c72 to your computer and use it in GitHub Desktop.

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