Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Adding a module that retrieves passwords from Amazon's Parameter Store #185

Merged
merged 2 commits into from Jun 1, 2018

Conversation

ram-dog
Copy link
Contributor

@ram-dog ram-dog commented Jan 25, 2018

Salt module that retrieves a key stored in Amazon's Parameter store.
https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-paramstore.html/

Copy link
Contributor

@UtahDave UtahDave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for the addition! Could you review the requested changes? Thanks!

@@ -0,0 +1,85 @@
#! /usr/bin/env python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for the shebang. Please replace it with
# -*- coding: utf-8 -*-

@@ -0,0 +1,85 @@
#! /usr/bin/env python
"""Salt module that retrieves a key stored in Amazon's Parameter store.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please standardize multi-line comments to use triple single quotes instead of triple double quotes.

return "eu-west-1"

def get_parameter (name):
'''Get a parametewr by name.'''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We prefer the triple single quotes be on their own lines like this:

'''
Get a parameter by name.
'''

Also, please fix parameter misspelling.

return "eu-west-1"

def get_parameter (name):
'''Get a parametewr by name.'''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per pep8, please use 4 spaces for each indentation level.

@ram-dog ram-dog changed the title Adding a module that retirves passwords from Amazon's Parameter Store Adding a module that retrieves passwords from Amazon's Parameter Store Apr 13, 2018
@ram-dog
Copy link
Contributor Author

ram-dog commented Apr 13, 2018

Ok, I've made the requested changes. Please let me know if there is anything else you would like to see.

Thanks!

@dwoz
Copy link
Contributor

dwoz commented Apr 19, 2018

@UtahDave Do the changes look satisfactory?

@UtahDave
Copy link
Contributor

UtahDave commented Jun 1, 2018

Thanks for the updates!

@UtahDave UtahDave merged commit 3557d03 into vmware-archive:master Jun 1, 2018
@mchugh19
Copy link

SSM was added for the Neon release here: saltstack/salt#50215

If there is any missing functionality, please feel free to collaborate on it upstream.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants