Skip to content

Latest commit

 

History

History
139 lines (74 loc) · 4.67 KB

README.md

File metadata and controls

139 lines (74 loc) · 4.67 KB

Amazon S3

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.

https://aws.amazon.com/s3/

Assignment 01

Host static website using AWS S3 and Route53

e.g use aws cli and aws console

Assignment 01 (a)

  • 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

Assignment 01 (b)

  • Enable static site
  • Open public access e.g assign putObject role via ACL
  • Upload index.html, error.html
  • Get public url

Assignment 01 (c)

  • Enable version
  • Enable encryption
  • Add tag

Assignment 01 (d)

  • Add Route53 zone
  • Create alias with s3 static site

Assignment 01 (e)

  • Create another s3 bucket upload a image
  • Access a image in index.html file - using CORS

Assignment 01 (f)

  • Read S3 Service Level Agreement
  • Create Monthly Cost Report.

Assignment 01 (g)

  • NodeJS-File-Upload-AWS-S3-Bucket

https://github.com/Ameen-Alam/NodeJS-File-Upload-AWS-S3-Bucket


Commands:

$ 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


Documentations:

  1. AWS Certified Developer Associate Syllabus

  2. AWS Security Tips: Understanding Access Controls in Amazon S3

  3. put-object

  4. get-object

  5. Amazon S3 Service Level Agreement

  6. Access control list (ACL) overview

  7. Amazon S3 Reduced Redundancy Storage

  8. Amazon S3 storage classes

  9. Amazon S3 inventory

  10. S3 Batch Operations: Create a Job

  11. AWS-S3-ACL-public-read-write-security-concern

  12. Billing & Cost Management Dashboard

  13. IAM Tutorial: Delegate access to the billing console

  14. Support Center

  15. server access logging

  16. AWS IP address ranges

  17. Deleting Amazon S3 log files

  18. Managing S3 Object lifecycle

  19. PutBucketLifecycleConfiguration

  20. DeleteBucketLifecycle

  21. AWS Trusted Advisor

  22. Support plans

  23. Amazon S3 Security and Access Management

  24. Storage Lens

  25. Amazon Route 53 pricing

Alert:

AWS Free Tier

Amazon Route 53 HostedZone $0.50 per Hosted Zone for the first 25 Hosted Zones1.000 HostedZone$0.50