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

amplify-ssm-plugin

v1.0.3

Published

Plugin to put the front end version into a parameter in AWS Parameter Store.

Downloads

2

Readme

Amplify SSM Plugin

This plugin implements some API calls to AWS SSM Parameter Store.

It uses awscloudformation provider Configured AWS CLI to access your AWS resources.

The Main purpose is to allow developers to leverage their current Amplify configuration and interact with the Parameter Store and manage the version of the frontend application.

It is also possible to fetch and put any parameter from and to the parameter store. Only supports string, non-encrypted, standard tier parameters.

Before using this plugin you need:

  • Amplify Framework properly installed and configured with awscloudformation provider fully functional.

Install and Help

Install:

npm install -g amplify-ssm-plugin
amplify plugin add amplify-ssm-plugin

Help:

amplify amplify-ssm-plugin help

Usage

Frontend version

The frontend version parameter is stored in the Parameter Store following the syntax below:

/<ENVIRONMENT>/frontend/version
  • ENVIRONMENT will be replaced by the environment being published, such as dev, prod.

Get current frontend version

To get the current value of the frontend version parameter:

amplify amplify-ssm-plugin get-version <ENVIRONMENT>

Example:

amplify amplify-ssm-plugin get-version dev

This wil result in something like:

$ amplify amplify-ssm-plugin get-version dev
✔ Version parameter retrieved successfully.
Current frontend version for dev on Parameter Store is 1.2.3.

Update frontend version

To update the value of the frontend version parameter:

amplify amplify-ssm-plugin put-version <ENVIRONMENT> <VERSION>

Example:

amplify amplify-ssm-plugin put-version dev 1.2.4

This will result in something like:

$ amplify amplify-ssm-plugin put-version dev 1.2.4
Will update version value for environment dev to 1.2.4 on /dev/frontend/version...
✔ Version parameter updated successfully.
Parameter /dev/frontend/version was changed 5 times.

Other Parameters

You can also get and put any other string, non-encrypted, standard tier parameter using de get-parameter and put-parameter commands:

To put the value bar on the parameter foo:

amplify amplify-ssm-plugin put-parameter foo bar

To get the value of the parameter foo:

amplify amplify-ssm-plugin get-parameter foo

License

This library is licensed under the MIT License.