<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>celeron1ghz</author_name>
  <author_url>https://blog.hatena.ne.jp/celeron1ghz/</author_url>
  <blog_title>ツー</blog_title>
  <blog_url>https://celeron1ghz.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>だいたいはAWSの公式ブログの通り。 上記に書いてなくてハマったことが2点。 bucket policyにGetObjectだけじゃなくてListObjectがないと403が出て混乱する 上記のAWSブログにあるやつを実装してみると404かどうかをチェックしてリサイズの処理を走らせている。 s3のファイルは GetObject だけしかしてないからそれだけ権限あればいいやろーーとs3のbucket policyにそういう設定をすると data &quot;aws_iam_policy_document&quot; &quot;bucket-policy&quot; { statement { sid = &quot;1&quot; effect = &quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fceleron1ghz.hatenablog.com%2Fentry%2F2022%2F05%2F15%2F223451&quot; title=&quot;CloudFront+lambda@edgeでオンデマンドで画像のリサイズしてくれるやつを作る - ツー&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-05-15 22:34:51</published>
  <title>CloudFront+lambda@edgeでオンデマンドで画像のリサイズしてくれるやつを作る</title>
  <type>rich</type>
  <url>https://celeron1ghz.hatenablog.com/entry/2022/05/15/223451</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
