outputs AWS credentials
cprl credentials output [flags]
Basic output:
$ cprl credentials output
export AWS_ACCESS_KEY_ID=<access key id value>
export AWS_SECRET_ACCESS_KEY=<secret access key value>
export AWS_SESSION_TOKEN=<session token value>
JSON output:
$ cprl credentials output --json
{"AccessKeyID":"<access key id value>","SecretAccessKey":...}
Source credentials as your current session:
$ source <(cprl credentials output --aws-profile=dev)
$ aws sts get-caller-identity
{
"UserId": "TAG0YY70NST6IUO5KA5XB:cprl",
"Account": "010203040506",
"Arn": "arn:aws:sts::010203040506:assumed-role/dev/cprl"
}
-h, --help help for output
-i, --interactive interactive prompt with suggested profiles
--json output in json format
-o, --output-style string output style [unix, powershell, windows] (default "unix")
--aws-profile string overrides [aws-profile] value in cprl.yaml
--profile string references a profile in cprl.yaml (default "default")
- cprl credentials - AWS credentials