簡體   English   中英

如何從 .aws/credentials 為 aws cli 獲取 AWS 憑證配置文件

[英]How to source AWS credentials profile from .aws/credentials for aws cli

我的.aws/credentials文件中有以下 AWS 編程訪問憑證。

如何指定用於 AWS cli 命令的憑證? 並驗證正在使用哪些憑據?

在此處輸入圖像描述

驗證:

AWS_PROFILE=amplify aws sts get-caller-identity

# OR

aws sts get-caller-identity --profile amplify

運行命令相同:

AWS_PROFILE=default aws eks --region .......

# OR

aws eks --region ....... --profile default

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM