Skip to content

Instantly share code, notes, and snippets.

@2get
Created May 29, 2014 11:00
Show Gist options
  • Save 2get/60f49b36870e0a0c5853 to your computer and use it in GitHub Desktop.
Save 2get/60f49b36870e0a0c5853 to your computer and use it in GitHub Desktop.
Public Static Site AWS Policy

1. Generate AWS Policy JSON Document

Open http://awspolicygen.s3.amazonaws.com/policygen.html

Select Policy Type

  • Select Type of Policy: S3 Bucket Policy

Step 2: Add Statement(s)

  • Effect: Allow
  • Principal: *
  • Actions: GetObject
  • Amazon Resource Name (ARN): arn:aws:s3:::static.example.com/*

Click Add Statement

Click Generate Policy

Copy Policy JSON Document

2. S3 bucket permission configuration

  1. Open Permission
  2. Click Edit bucket policy
  3. Paste generated policy json document
  4. Click Save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment