Deploy frontend apps with AWS

Agenda

  • Amazon S3
  • Amazon Cloudfront
  • Workshop
  • CNAME, SSL, deploy, pricing++

Amazon S3

Amazon Cloudfront

  • Distribuert lagring
  • Cache
  • SSL-endepunkt
  • Streaming feature
  • Logging og stats
  • Lavere kost

Performance testing

latency of request to different S3 and cloudfront locations

Workshop

github.com/tomfa/aws-frontend-workshop/

CNAME

  • Cloudfront: Alternate Domain Names
  • (Route53)

SSL

  • AWS Certificate Manager (gratis)
    • eu-east-1 (N. Virginia)
  • Custom sertifikater

Deploy

Tja. aws s3 sync ./dist/ s3://rodneyhadafish --region=eu-central-1 --exclude ".git/*" --delete

Summary

  • S3 hosting is dirt cheap
  • Cloudfront is dirt cheap
  • Cloudfront is fast
  • Cloudfront with Amazon SSL is free
  • Cloudfront with Amazon SSL is easy