DNXLabs / one-cli

CLI to manage all stacks from DNX.
https://cli.dnx.one
Apache License 2.0
7 stars 0 forks source link

Add option to send AWS access_key_id and secret_access_key while configuring one auth iam #95

Closed arthurbdiniz closed 3 years ago

arthurbdiniz commented 3 years ago

Is your proposal related to a problem?

Be able to use the one auth iam sending --access_key_id, --secret_access_key and --region.

one auth iam --access_key_id something --secret_access_key something2 --region ap-southeast-2

Describe the solution you'd like

@click.option('-i', '--access_key_id', default=None, envvar='AWS_ACCESS_KEY_ID', type=str, help='AWS access-key-id.')
@click.option('-k', '--secret_access_key', default=None, envvar='AWS_SECRET_ACCESS_KEY', type=str, help='AWS secret-access-key.')
@click.option('-r', '--region', default='us-east-1', envvar='REGION', type=str, help='AWS default region.')

The path to finding this action is at ./one/commands/auth in the function iam.