AWS Identity and Access Management
CLI Reference (API Version 2010-05-08)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

Common Command Options

This section describes options common to all IAM commands.

Options

All of the commands in the CLI accept the optional parameters described in the following table.

OptionDescription

--aws-credential-file value

Path to the file containing your AWS credentials. This value can be stored in the AWS_CREDENTIAL_FILE environment variable.

Example: --aws-credential-file c:\AWS\mycredentials.txt

--client-config-file value

Path to the file containing your proxy server settings. If you are behind a proxy server and you cannot make calls to IAM directly, you can use this option to specify a configuration file that contains your proxy server settings. This value can be stored in the CLIENT_CONFIG_FILE environment variable.

Example: --client-config-file c:\AWS\myconfig.txt

-d or --debug

Enables debug logging.

-h

Prints help information for the command.

--url value

Override the URL for the service call with the value supplied. This value is set using the AWS_IAM_URL environment variable.

Note

When you use the --aws-credential-file or --client-config-file option on the command line, you override the option value stored as an environment variable.

Note

The command line interface contains template files you can use to specify settings for --aws-credential-file and --client-config-file. The templates are available at $AWS_IAM_HOME/aws-credential.template and $AWS_IAM_HOME/client-config.template, respectively.