Upgrade to Pro — share decks privately, control downloads, hide ads and more …

新機能紹介!CloudFront Functions を触ってみた/Tried out the new CloudFront Functions

ega4432
June 01, 2021
230

新機能紹介!CloudFront Functions を触ってみた/Tried out the new CloudFront Functions

ega4432

June 01, 2021
Tweet

Transcript

  1. アジェンダ 1. Amazon CloudFront とは 2. Lambda@Edge とは 3. CloudFront

    Functions とは 4. CF2 の注意点 5. CF2 のユースケース 6. URL 正規化をやってみた 7. まとめ 新機能紹介!CloudFront Functions を触ってみた 2021 ©︎ ega4432 - Built with marp. 2
  2. CloudFront とは 「 AWS の CDN サービス」 静的、動的なコンテンツを高速配信 セキュア ユーザを近いエッジロケーションに誘導

    エッジコンピューティングが利用可能 新機能紹介!CloudFront Functions を触ってみた 2021 ©︎ ega4432 - Built with marp. 4
  3. CF2 の注意点 Lambda@Edge よりも縛りが多い 実行時間の制限 1ms 最大メモリ 2MB ランタイムは JavaScript

    だけ 新機能紹介!CloudFront Functions を触ってみた 2021 ©︎ ega4432 - Built with marp. 10
  4. 構成 S3 CloudFront ユーザ $ aws s3 ls s3://cloudfront-functions-sample --recursive

    . ├── index.html └── sample └── index.html 新機能紹介!CloudFront Functions を触ってみた 2021 ©︎ ega4432 - Built with marp. 14
  5. 目指すかたち 下記のようにリクエスト URL を正規化できれば良さそう! / -> /index.html /sample -> /sample/index.html

    /sample/ -> /sample/index.html 新機能紹介!CloudFront Functions を触ってみた 2021 ©︎ ega4432 - Built with marp. 16