AWS CLI で IAM ロールを使用する - AWS Command Line Interface
AWS Identity and Access Management で定義されたロールを使用するよう AWS CLI を設定します。