Skip to main content
Cloud Automation10 min read

GitHub OIDC → AWS(長期キー不要):クラウド自動化の正しい方法

GitHub Actions OIDCを使用してAWS IAMロールを引き受け、AWSキーを保存せずにアーティファクトをデプロイ/アップロードする方法。最小権限IAM、信頼ポリシーパターン、トラブルシューティングのヒントを含む。

Part ofCloud & Infrastructure->
By Jason TeixeiraJanuary 10, 2026
AWSIAMOIDCGitHub ActionsTerraformSecurity
Share:
On this page

CIに静的なAWSキーを埋め込むのは危険です。

スケーラブルで(かつセキュリティレビューに合格する)クラウド自動化を実現するには、OIDCベースのフェデレーションを使用しましょう:

  • GitHub Actionsが短期間有効なIDトークン(OIDC)を発行
  • AWS STSがそれを短期間有効なAWS認証情報と交換
  • ワークフローが最小権限のロールを引き受けて処理を実行

このポートフォリオでも同じパターンを使用し、長期間有効な認証情報を埋め込むことなくクラウドテレメトリモード(AWS S3)をサポートしています。

アーキテクチャ

\

Reader route

article -> proof -> offer

ReadClusterProofScope

cluster

Cloud & Infrastructure

intent

Cloud Automation

route

next step

What to do with this

Turn the note into a build path.

If this topic maps to a real business problem, keep reading the cluster, study the academy path, or route the work into a scoped engagement.

Jason Teixeira
Written by
Jason Teixeira
Founder, Sage Ideas Studio · Principal Engineer
livebuild 5d6c8652026-08-05 06:00Z
// solo studio// no analytics resold// every commit human-reviewed