AWS Classroom Series – 05/Sept/2020

Creating Cloudfront distributions

  • Create a cloud front distribution for videos Preview Preview Preview Preview Preview Preview Preview Preview
  • Try this kind of html
<html>
<head>
	<title> testing cdn </title>
</head>

<div>
<video width="320" height="240" controls>
  <source src="https://s3-us-west-2.amazonaws.com/ltstoragelearning.com/videos/small.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<video width="320" height="240" controls>
  <source src="https://s3-us-west-2.amazonaws.com/ltstoragelearning.com/videos/video1.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
<br/>
<h2> The below videos are from cdn </h2>	

<video width="320" height="240" controls>
  <source src="http://doe3k7tqq5f4v.cloudfront.net/small.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<video width="320" height="240" controls>
  <source src="http://doe3k7tqq5f4v.cloudfront.net/video1.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
  • Cloud front distributions will be faster than s3 because they take advantage of POP locations of AWS
  • If the video is POP location on request then video gets cached to POP location and will be available for TTL (default 1 day)

Glacier and Glacier Deep Archive

  • Glacier is used for the data which is not meant to accessed frequently.
  • Glacier is archival storage.
  • In Glacier the data has to be present at least for 90 days
  • In Glacier – Deep archive data has to be present at for 180 days
  • Glacier will have vaults. Inside these vaults you can store the content
  • Data can be copied into Glacier using life cycle rules of S3
  • Uploading Archive to Vault can be done from
    • aws sdk (C# or Java or Python)
    • aws cli
  • For cli Refer Here
  • Glacier takes up to 15 hours to download the data where as Glacier deep archive takes upto 12 hours to download the data from glacier
  • uploaded sample to glacier vault using cli Preview

AWS Storage Gateway

  • This connects an on-premises applications with aws cloud based storage
  • Offers
    • File Gateway:
      • This supports file interface into S3 & combine service & virtual software appliance.
      • Using this we can retrieve, store objects in S3 over standard protocols such as NFS & SMB
      • This s/w appliance is deployed into on-premise virtual machine (VMware, Hyper, KVM) Preview
    • Volume Gateway:
      • This provides cloud-based storage volumes that can be mounted as Internet Small Computer System Interface (iSCSI)
      • This is supported on hypervisior (VMWare, KVM or Microsoft)
      • This supports two volume configurations
        • Cached Volumes Preview
        • Stored Volumes Preview
    • Tape Gateway:
      • This Gateway privides cloud-backed virtul tape storage
      • This is supported on hypervisior (VMWare, KVM or Microsoft)
      • This tape gateway is cost-effective for archiving back up data into Glacier or Glacier Deep Archive. Preview

Encryption in S3 Buckets

  • In Transit:
    • S3 is accessed over https which is already encrypted.
  • Rest
    • Default encryption
    • AWS KMS

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin