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

awespottr

v0.3.0

Published

Find the cheapest EC2 spot prices in any region.

Downloads

2

Readme

awespottr

Find the cheapest EC2 spot prices across all regions

npmjs.com Version

Usage

When installed globally with npm install -g awespottr, you can run awespottr on the command line:

  • Get help: awespottr -h

  • Get spot prices for a g2.8xlarge instance: awespottr g2.8xlarge

  • Specify an AWS CLI profile (credentials): AWS_PROFILE=awespottr awespottr m4.large

  • Limit results to a specific region: awespottr --region us-west-2 c4.xlarge

IAM Policy

awespottr must be run with an IAM role or user with permissions to get information about AWS regions, availability zones, and spot price history.

This IAM policy contains the minimum permissions required for running awespottr:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1470583998000",
            "Effect": "Allow",
            "Action": [
                "ec2:DescribeAvailabilityZones",
                "ec2:DescribeRegions",
                "ec2:DescribeSpotPriceHistory"
            ],
            "Resource": [
                "*"
            ]
        }
    ]
}

Example Output

Running awespottr m4.2xlarge should produce output like:

Checking spot prices for m4.2xlarge instance type.

AWS Zone                 Hourly Rate
------------------------ ------------
eu-west-1b               $0.063000
eu-central-1a            $0.067000
eu-central-1b            $0.072700
ap-northeast-2c          $0.073300
ap-southeast-2b          $0.078100
us-west-2c               $0.078100
ap-southeast-1a          $0.079800
ap-southeast-1b          $0.081200
eu-west-1c               $0.086200
ap-northeast-1a          $0.086600
us-east-1e               $0.088900
ap-northeast-1c          $0.090200
us-west-1c               $0.091600
us-west-1b               $0.096700
ap-northeast-2a          $0.096800
eu-west-1a               $0.099200
ap-southeast-2a          $0.099600
ap-southeast-2c          $0.103100
us-east-1a               $0.178500
ap-south-1a              $0.292000
us-west-2b               $0.390700
ap-south-1b              $0.430000
us-east-1c               $0.479000
us-west-2a               $1.000000
us-east-1d               $1.500000

Cheapest hourly rate for m4.2xlarge is $0.063000 in zone eu-west-1b