6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[2025年最新版]ほんの一瞬だけ使えたら満足なんです。一瞬だけCloudShellのクレデンシャル(アクセスキー)を拝借させていただけませんでしょうか

Last updated at Posted at 2025-05-13

過去、こちらの記事を投稿させていただいております。

イキってパイプしてJQで取るんだぜー的なのを書いてたんですが、、、 公式コマンドで一発で取れることがわかりました

CloudShell
aws configure export-credentials --format env

出力

export AWS_ACCESS_KEY_ID=*****
export AWS_SECRET_ACCESS_KEY=*****
export AWS_SESSION_TOKEN=*****
export AWS_CREDENTIAL_EXPIRATION=*****

これを使いたい環境コピーしたらOK。

Amazon Q Developer CLIが教えてくれました!

6
2
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
6
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?