Skip to content

ezgh objects credentials

Print an AWS CLI profile for an access key.

Updated View as Markdown
ezgh objects credentials <key>

Print an AWS CLI profile for an access key (oak_…), for ~/.aws/config. It needs AWS CLI 1.29 or 2.13, or later.

A key’s secret is shown only when the key is created, so the profile has a comment in its place: add the line yourself. ezgh objects keys create --print-credentials prints a whole profile.

Part of ezgh objects.

Examples

ezgh objects credentials oak_4k2m9x0a7qpe >> ~/.aws/config
aws --profile ezgh s3 ls

Flags

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close