<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kabegiwakun</author_name>
  <author_url>https://blog.hatena.ne.jp/kabegiwakun/</author_url>
  <blog_title>かべぎわブログ</blog_title>
  <blog_url>https://www.kabegiwablog.com/</blog_url>
  <categories>
    <anon>AWS</anon>
  </categories>
  <description>概要 クロスアカウントでAssumeRoleするときに外部IDを使用させる方法です。 悪意のある第三者にロール名、アカウントIDが漏洩しても、外部IDがわからなければAssumeRoleされないようになり、セキュリティの向上が見込めます。 手順 IAMロール作成 以下のような信頼ポリシーでIAMロールを作成します。 アカウントIDは自分の環境にあわせて変えてあげます。 &quot;sts:ExternalId&quot;: &quot;gaibu_id&quot;の箇所が外部IDです。今回外部IDはgaibu_idとしています。 { &quot;Version&quot;: &quot;2012-10-17&quot;, &quot;Statement&quot;: [ { &quot;Effect&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.kabegiwablog.com%2Fentry%2F2022%2F07%2F02%2F223631&quot; title=&quot;AssumeRoleするときに外部IDをもとめるようにする - かべぎわブログ&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-07-02 22:36:31</published>
  <title>AssumeRoleするときに外部IDをもとめるようにする</title>
  <type>rich</type>
  <url>https://www.kabegiwablog.com/entry/2022/07/02/223631</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
