Amazon Simple Storage Service is storage for the Internet. It is designed to make web-scale computing easier for developers. Amazon S3 has a simple web services interface that you can use to store and retrieve any amount of data, at any time, from anywhere on the web.
Host static website using AWS S3 and Route53
e.g use aws cli and aws console
- Create IAM User e.g role S3 full access
- Create S3 bucket
- Storage class: S3 Standard
- Put two objects via aws cli e.g image1.jpg image2.jpg
- Get presigned URL
- Enable static site
- Open public access e.g assign putObject role via ACL
- Upload index.html, error.html
- Get public url
- Enable version
- Enable encryption
- Add tag
- Add Route53 zone
- Create alias with s3 static site
- Create another s3 bucket upload a image
- Access a image in index.html file - using CORS
- Read S3 Service Level Agreement
- Create Monthly Cost Report.
- NodeJS-File-Upload-AWS-S3-Bucket
https://github.com/Ameen-Alam/NodeJS-File-Upload-AWS-S3-Bucket
$ aws configure
$ aws s3api put-object --bucket myawsbucketnodeapp --key dir-1/my_images --body mydownload.jpeg
$ aws s3api get-object --bucket text-content --key dir/my_images.tar.bz2 my_images.tar.bz2
Finding the canonical user ID for your AWS account
$ aws s3api list-buckets --query Owner.ID --output text
$ aws organizations describe-account --account-id 444444444444
$ aws iam create-role --role-name Test-UserAccess-Role --assume-role-policy-document file://C:\policies\trustpolicyforacct123456789012.json
$ aws iam attach-role-policy --role-name Test-UserAccess-Role --policy-arn arn:aws:iam::123456789012:role/PolicyForRole
Amazon Route 53 HostedZone $0.50 per Hosted Zone for the first 25 Hosted Zones1.000 HostedZone$0.50