<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>utgwkk</author_name>
  <author_url>https://blog.hatena.ne.jp/utgwkk/</author_url>
  <blog_title>私が歌川です</blog_title>
  <blog_url>https://blog.utgw.net/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>はじめに docker run コマンドで実行するDockerコンテナ内でAWSのAPI呼び出しを行うとき、何もしないと認証情報がなくて失敗すると思う。なんとかしてホスト側の認証情報を伝えたい。なお、令和なのでアクセスキーはホストのどこにも (~/.aws/credentials ファイルにも) 永続化されておらず、一時的な認証情報 (SSOやAssumeRole) しかないものとする。 やりかた 結論から言うと、aws configure export-credentials コマンドを使って認証情報をアクセスキー・シークレットキーの形式で取得できるので、これが使える。ホスト側でアクセスキー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.utgw.net%2Fentry%2F2026%2F04%2F15%2F120739&quot; title=&quot;docker runでコンテナにホスト側のAWS CLIの認証情報を伝えたい - 私が歌川です&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>2026-04-15 12:07:39</published>
  <title>docker runでコンテナにホスト側のAWS CLIの認証情報を伝えたい</title>
  <type>rich</type>
  <url>https://blog.utgw.net/entry/2026/04/15/120739</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
