cultureamp / parameter-store-exec

Execute a command with environment loaded from AWS Parameter Store
MIT License
4 stars 2 forks source link

Support Multiple Paths #11

Open ambsw-technology opened 5 years ago

ambsw-technology commented 5 years ago

I've reviewed a ton of packages that fulfill the same general purpose and am leaning towards this one. We use ssm-diff (with a bunch of PR'd improvements) to populate/administer parameter store using YAML files so nesting is natural for us. I really like how this package exposes those nested keys to the app. I also find the general approach sound.

The one thing that's attractive in other packages and not found in this one is the option to use multiple paths (e.g. separated by ; or :). This option makes it easier to import both server-specific configurations and common configurations (e.g. database). In other packages that support multiple paths, it's understood that keys in later paths may overwrite keys in earlier paths (both a practical requirement and a feature).

I see the advantages of path-as-environment-variable, but it also means that you can't workaround the one-path limitation by, for example, wrapping the app with two calls to the package (each with different paths).

ambsw-technology commented 5 years ago

Just noticed (in the network) that @Marvelution has a patch for this. PR?

markrekveld commented 5 years ago

Sure I can open a PR for this: #13

jamestelfer commented 2 months ago

@ambsw-technology the original PR was closed as it was stale, and didn't include any tests.

Are you still using this tool? Would this still be useful?