aliyun-cli
aliyun-cli copied to clipboard
RamRoleArn模式下aliyun cr无效
-
命令格式:
aliyun configure --profile ram-role --mode RamRoleArn aliyun cr GetAuthorizationToken
-
执行命令:
➜ aliyun cr GetAuthorizationToken
-
输出:
ERROR: SDK.ServerError ErrorCode: MissingSecurityToken Recommend: https://error-center.aliyun.com/status/search?Keyword=MissingSecurityToken&source=PopGw RequestId: 8557391D-8530-593D-9207-22E75F53CD11 Message: SecurityToken is mandatory for this action.
Role的权限已经是允许所有cr资源 相同的mode下,oss命令是正确的
➜ aliyun oss ls oss://ng-software/ | head
LastModifiedTime Size(B) StorageClass ETAG ObjectName
2021-07-02 11:44:43 +0800 CST 18950 Standard 892D439E2EA39C4668DF86F1743A5F76 oss://ng-software/alicheck/ngiq-desktop/linux/app-logo.png
收到。我们再看下这个问题