AWS – Create S3 Buckets


Create Empty Storage Buckets

  • Login to Console (aws.amazon.com)
  • Sign in to Console
  • Select S3
  • Create Buckets
    • myurl.com
    • logs.myurl.com

Configure myurl.com Bucket

  • Select S3
  • Select myurl.com
    • Properties -> Logging
      • Enable logging
      • Target Bucket: logs.myurl.com
      • Target prefix: root/
    • Properties -> Static website hosting
      • use this bucket to host a website
      • index.html
      • error.html

Configure Bucket Policy

  • Select S3
  • Select myurl.com
  • Permissions -> Bucket Policy
{    
	"Version": "2012-10-17",    
	"Statement": [        
		{            
			"Sid": "Allow Public Access to All Objects",            
			"Effect": "Allow",           
			"Principal": "*", 
          		"Action": "s3:GetObject",            
			"Resource": "arn:aws:s3:::myurl.com/*"        
		}    
	]
}
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s