djcrabhat / aws-ssm-commander

A utility for dealing with values in AWS SSM Parameter Store
MIT License
7 stars 6 forks source link

Allow using different aws profiles #6

Open MAliNaqvi opened 5 years ago

MAliNaqvi commented 5 years ago

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

djcrabhat commented 5 years ago

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

hebbarh commented 5 years ago

How about adding --region as well? -Harish

djcrabhat commented 4 years ago

@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