Closed mo22 closed 3 years ago
I have been in this situation too; where you need to generate those values and pass it through configure.
Also to mention; doesn't fall down the order for the auth method, e.g if the ECS instance holds ram role it should just read it from metadata yet it requires configuration saying which ram role you want to use (given its only possible to set 1 role per instance).
Also, the deletion of any added role will take you to default; which would be empty in the above situation.
CLI reads configuration file parameters first, please try to call after configuration.
Hi,
aliyun-cli should be able to be configured using
ALICLOUD_ACCESS_KEY_ID
,ALICLOUD_ACCESS_KEY_SECRET
andSECURITY_TOKEN
.However after the default installation the seems to be a predefined default account in ~/.aliyun/config.json with mode set to AK, which prevents the the logic to automatically set the mode to
STS
ifSECURITY_TOKEN
is set.Also, if the active profile has any other data already set, the environment variables do not have any effect.
It would be nice to be able to configure aliyun-cli completely via environment variables
Command Format:
Execution Command:
Output: