S3

Amazon S3 bucket:

Its just like a storage room to keep all the stuff that matters.

Can host static site (just like using Github pages) with permissions and

set functionality

Inorder to store, create S3 bucket first with a unique name.

This name is unique globally.

  • To check if site is hosted as S3 bucketdig +nocmd domain.name any +multiline +noall +answerresult: domain name's IP and if its hosted as s3 bucket
  • To know the hosted regionnslookup ip addressresult: name and the region is displayed.
  • Browsing whats in the bucketaws s3 ls s3://domain.name/ --no-sign-request --re-gi-on
  • To list whats inside bucket using aws accountaws s3 --profile your_account ls s3://level2 c8b217a33fcf1f839f6f1f73a00a9ae7.flaws.cloudto give complete permission to list everything whats inside the s3bucket is ver bad idea
  • Control access to bucketIf following permission is choosen, anyone can list the bucket whichis very bad1.Everyone: Anybody on the internet have access.2.Any Authenticated User: Anybody having AWS account has access.
  • To check the history of git repoGo into respective repository to check the history and rungit logreult: Tells if any sensitive information is committed.To check what is that sensitive information, rungit show hash_for_commit_displayed