<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>r-sugisaki</author_name>
  <author_url>https://blog.hatena.ne.jp/r-sugisaki/</author_url>
  <blog_title>PLAY DEVELOPERS BLOG</blog_title>
  <blog_url>https://developers.play.jp/</blog_url>
  <categories>
    <anon>Google Cloud</anon>
    <anon>AWS</anon>
  </categories>
  <description>AWS の Lambda 関数から Google Cloud の Workload Identity Federation を使おうとした際に遭遇したエラーの話です。 The size of mapped attribute google.subject exceeds the 127 bytes limit. Either modify your attribute mapping or the incoming assertion to produce a mapped attribute that is less than 127 bytes. AWS と連携する際の Workload Identity Pool （以下 WIP）の属性マッピングは、 google.subject としてデフォルトでは assumed-role の ARN がマッピングされます。この google.subject は127バイト以下にしないといけないですが、Lambda 関数から連携するケースでは基本的に assumed-role の ARN に IAM ロール名と Lambda 関数名が使われるので、これが長いと ARN が127バイトを超えてしまい、WIF 側でエラーになってしまいます。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevelopers.play.jp%2Fentry%2F2026%2F01%2F27%2F160000&quot; title=&quot;AWS から Google Cloud の Workload Identity Federation を使う時にハマったところ - PLAY DEVELOPERS BLOG&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>https://cdn-ak.f.st-hatena.com/images/fotolife/p/playjp/20260127/20260127160006.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-01-27 16:00:00</published>
  <title>AWS から Google Cloud の Workload Identity Federation を使う時にハマったところ</title>
  <type>rich</type>
  <url>https://developers.play.jp/entry/2026/01/27/160000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
