Usage of nzcli with AWS IAM authentication
./nzcli awsiam --help
nz awsiam [options] nzcommand
Authenticator is AWSIAM.
Options
| Options | Description |
|---|---|
-access-key |
The access key for the awsiam user [AWS_ACCESS_KEY_ID] (required) |
-apiserver |
The url of the api server [APISERVER_URL] (required) |
-format |
Output Format [FORMAT] |
--h |
Show help of nz command |
-hc |
Show details of nz command |
-mfa-code |
The MFA code for the awsiam user |
-secret-access-key |
The secret access key for the awsiam user [AWS_SECRET_ACCESS_KEY] (required) |
-u |
NPS Username [NZ_USER] (required) |
./nzcli awsiam -access-key <access-key-value> -secret-access-key <secret-access-key-value> -mfa-code <mfa-value> -u AWSUSER -apiserver APISERVER_URL nzcommand
./nzcli awsiam -access-key <access-key-value> -secret-access-key <secret-access-key-value> -u AWSUSER -apiserver APISERVER_URL nzcommand
nzcli requests MFA code.
Using nzcli without AWS IAM option
When using nzcli without AWSIAM option, MFA code is not required. Specify only the access-key:secret-access-key as password.
./nzcli nzcommand -u AWSUSER -pw "access-key:secret-access-key" -apiserver APISERVER_URL
AWS users can authenticate without mfa-code using nzcli.