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/*"        
		}    
	]
}

Leave a comment

Skills421

Welcome to Skills421, our knowledge repository for all things tech in the 21st century

Let’s connect

Search