djcrabhat / aws-ssm-commander

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

Can't pass SecureString values #4

Closed MAliNaqvi closed 5 years ago

MAliNaqvi commented 5 years ago

Given:

name_of_secret:
  value: password
  kms_key_id: abc123

where we want to secure a value with a kms_key_id, the yaml parser considers each value as a leaf. Each item is considered as a string rather than a dictionary,

{root}
└── name_of_secret
    ├── kms_key_id
    └── value

resulting in the interpreter skipping over this block of code:

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