djcrabhat/aws-ssm-commander

Allow using different aws profiles

Opened this issue · 3 comments

Currently, aws-ssm-commander doesn't allow using different aws profiles:

https://github.com/djcrabhat/aws-ssm-commander/blob/master/ssmcommander/yaml_parser.py#L18-L22

There should be an optional cli argument to switch between aws profiles

So if you set the environment variable AWS_PROFILE, it'll select that profile. But you're right, the --profile flag would be good.

How about adding --region as well?
-Harish

@harimh "--region" already exists on the sub-commands, if you look at the individual usages

tree --help
Usage: cli.py tree [OPTIONS] SSM_PREFIX

  Print out a tree of your SSM parameters

Options:
  --ssm-override-url TEXT
  --region TEXT
  --help                   Show this message and exit.

Process finished with exit code 0