Skip to main content
Version: v0.16.0

Getting started

Installation

lease go to the Releases page to download the latest version of the ack-ram-tool.

Configuration

Credentials

ack-ram-tool will search for credential information in the system in the following order:

  1. Automatically use credential information that exists in the environment variables( Note: This tool also supports the credential-related environment variables supported by aliyun cli ):
environment variablesdescription
ALIBABA_CLOUD_ACCESS_KEY_IDALICLOUD_ACCESS_KEYALIBABACLOUD_ACCESS_KEY_IDALICLOUD_ACCESS_KEY_IDALIBABACLOUD_ACCESS_KEY_IDACCESS_KEY_IDaccess key id
ALIBABA_CLOUD_ACCESS_KEY_SECRETALICLOUD_SECRET_KEYALIBABACLOUD_ACCESS_KEY_SECRETALICLOUD_ACCESS_KEY_SECRETACCESS_KEY_SECRETaccess key secret
ALIBABA_CLOUD_SECURITY_TOKENALICLOUD_ACCESS_KEY_STS_TOKENALIBABACLOUD_SECURITY_TOKENALICLOUD_SECURITY_TOKENALIBABACLOUD_SECURITY_TOKENSECURITY_TOKENsts token
ALIBABA_CLOUD_CREDENTIALS_URIcredentials URI
ALIBABA_CLOUD_ROLE_ARNRAM Role ARN
ALIBABA_CLOUD_OIDC_PROVIDER_ARNOIDC Provider ARN
ALIBABA_CLOUD_OIDC_TOKEN_FILEOIDC Token File
  1. When credential information does not exist in the environment variables, if there is an aliyun cli configuration file ~/.aliyun/config.json (For details on the aliyun cli configuration file, please refer to the official documentation ) , the program will automatically use that configuration file.

  2. When the aliyun cli configuration file does not exist, the program will attempt to use the credential information configured in the ~/.alibabacloud/credentials file (which can be specified by the --profile-file flags):

$ cat ~/.alibabacloud/credentials

[default]
type = access_key
access_key_id = foo
access_key_secret = bar

Permissions

In order to use ack-ram-tool normally, you need to grant the necessary RAM permissions and RBAC permissions for the Alibaba Cloud RAM user or RAM role that uses this tool. For the minimum permission information required for each subcommand, please refer to Permissions.