3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Qiita株式会社Advent Calendar 2024

Day 15

CloudFront + S3 で静的サイトを配信したい

Last updated at Posted at 2024-12-14

結論

静的サイトを配信したくなることがある

とはいえ,S3 だけだと,ちょっと嫌な場合がある
cache して欲しいとかそういう.
で,CloudFront を使おうとするけど,key にいい感じでアクセスさせたい.

  • Lambda
    • 〜/ でアクセスされたのを 〜/index.html とかにしてくれる
    • key が無い場合に S3 のエラーになるのを 404 にしてくれる

感じで,それなりに上手くいきます.

Refs

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?