npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

dr-paramstore-config-mgmt-utils

v1.0.2

Published

This librarycontains tools to fetch, update and delete parameters from the store.

Downloads

1

Readme

ParameterStore Content Management CLI

This librarycontains tools to fetch, update and delete parameters from the store.

Actions

Fetch

This action allows you to retrieve an entire environment from the parameter store and outputs a JSON file with the contents.

Command Line Syntax

npx @makemydeal/dr-paramstore-config-mgmt-utils fetch -e {env} -f {filespec}

Parameters

| Parameter | Switch | Required | Description | --- | --- | --- | --- | env | --env or -e | Yes | The environment to write to | file | --file or -f | Yes | The JSON file to write to | region | --region or -r | No | The region [us-east-1] | seure | --secure or -s | No | Retrieve only the props that are secure, with a value of 'true' for each prop (create the config-secure.json file)

Update

This action allows you to write an entire environment to the Parameter Store. The recommended action is to use fetch to get the environment, add your changes and then use update to upload the changes. The input file will be JSON which supports String, StringArray and SecureString values

SecureString

A secure string is encrypted in the AWS ParameterStore. This keeps sensitive values safe. We need to specify a secure file (see below) in order to mark which settings are secure strings.

Secure File

The secure file will mimic the schema used by the parameter store to store the values. The only values that are needed are the values that are secure. As secure values are added to the schema, we should also update config-secure.json to refect that. This will allow the command line to know which props to add as SecureString in AWS Parameter Store.

Sanple File:

{
    "secure": true,
    "testAttr: {
        "testSetting": true
    }
}

You can use the fetch command to create a secure file with the -s switch.

Command Line Syntax

npx @makemydeal/dr-paramstore-config-mgmt-utils update -e {env} -f {filespec} -s {securefilespec}

Parameters

| Parameter | Switch | Required | Description | --- | --- | --- | --- | env | --env or -e | Yes | The environment to write to | file | --file or -f | Yes | The JSON file that has the parameters to write | secure | --secure or -s | No | If supplied, this object will mimic the structure of the --file parameter but only contain entries that should be marked as secure string. If the file is not provided, then any new props will be made as String type and not SecureString. | region | --region or -r | No | The region [us-east-1] | delete | --delete or -d | No | If this switch is provided: if values exist in the saved config but not in the new file, should they be deleted from the parameter store [false]

Delete

This utility will delete a entire environment from the parameter store. Input is received via the command line. This is not reversable.

Command Line Syntax

npx @makemydeal/dr-paramstore-config-mgmt-utils delete -e {env}

Parameters

| Parameter | Switch | Required | Description | --- | --- | --- | --- | env | --env or -e | Yes | The environment to delete | region | --region or -r | No | The region [us-east-1]

Recommended use

  1. Call fetch with the -s switch to get the config-secure.json file.
  2. Call fetch to get the parameters to the environment. Save the file as config.{env}.json
  3. Add the parameters you wish to config.{env}.json
  4. If you wish to have any of those newly added params as SecureString datatype, edit config-secure.json to use the same schema for the props you want to be secure with 'true' as their value.
  5. Use update to save the values to the parameter store.