Add --profile option for specifying AWS profile name to use
Remove --id alias from Rust CLI since it is used differently in the Python version to override IAM id
Rename --vault-stack argument name to --vaultstack to match Python version
Make more short command options visible in the help text
Print prefix in vault info if not empty
Looked into implementing the --id and --secret options for manually specifying IAM id that the Python version has but the aws sdk really does not want you to do that manually, and you need to give token and expiration time too (though these can be None). Also, they will be automatically picked up from env variables so better to just let the aws config load handle that instead of having our own manual extra handling for that. The profile option already does basically the same thing in a simpler way.
No need to run nep etc to switch profiles if you already have authenticated previously:
➜ rust git:(rust/cli-tweak) ./vault --profile nitor-core all
pynitor-api-access.json
➜ rust git:(rust/cli-tweak) ./vault --profile nitor-infra all
DigiCertGlobalRootCA.crt.pem
GITHUB_PAT_SELF_HOSTED_RUNNER
GITHUB_SELF_HOSTED_TOKEN-amibakery
GITHUB_SELF_HOSTED_TOKEN
...
--profile
option for specifying AWS profile name to use--id
alias from Rust CLI since it is used differently in the Python version to override IAM id--vault-stack
argument name to--vaultstack
to match Python versionLooked into implementing the
--id
and--secret
options for manually specifying IAM id that the Python version has but the aws sdk really does not want you to do that manually, and you need to give token and expiration time too (though these can beNone
). Also, they will be automatically picked up from env variables so better to just let the aws config load handle that instead of having our own manual extra handling for that. The profile option already does basically the same thing in a simpler way.No need to run nep etc to switch profiles if you already have authenticated previously: