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

aws-ssm-session

v2.1.1

Published

A CLI tool to start an SSM session from a pre-defined configuration.

Downloads

14

Readme

aws-ssm-session

This CLI tool is a thin wrapper around the aws ssm start-session AWS CLI command that loads pre-defined configuration including AWS credential profile, SSM instance ID, SSM document, and session parameters from AWS Parameter Store.

Reference: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ssm/start-session.html

Installation

npm i -g aws-ssm-session

Usage

Before you can establish a port forwarding session to a remote host you must have configured it's AWS Parameter Store name with the following command:

ssm-configure --name [custom_name] --paramName [parameter_store_name]

The value for --name can be any string value you choose. --paramName must be an existing SSM parameter where its value is set to a configration in the format of serialised JSON.

Then to establish an SSM port forwarding session, execute the following command:

ssm-start [profile] [name]

The value of profile should match an existing AWS credential profile. name refers to the custom name set with ssm-configure.

Pre-requisites

The AWS Session Manager plugin for AWS CLI must be installed. Installation instructions can be found here: https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html

This tool requires the parameter store value to be serialised JSON that matches the following schema:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "nodeId": {
      "type": "string"
    },
    "parameters": {
      "type": "object"
    }
  },
  "required": ["id", "name", "nodeId", "parameters"]
}

Example configuration:

{
  "id": "foo",
  "name": "MySSMSessionDocumentName",
  "nodeId": "i-0123456789",
  "parameters": {
    "portNumber": ["8080"],
    "localPortNumber": ["8080"]
  }
}

Example execution for the configuration shown above:

ssm-start my-profile foo