11.4.1 • Published 4 years ago

@buzuli/ops-tools v11.4.1

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

ops-tools

Build Status NPM version

A suite of tools to help @buzuli be more productive at DevOps.

Dependencies

  • Node.js >=8.0.0

Installing

$ npm i -g @buzuli/ops-tools

Both ops-tools and the alias ops will be exposed.

You can also invoke via npx:

npx @buzuli/ops-tools <sub-command>

Configuration

AWS

For AWS commands (ec2-*, s3-*, emr-*, etc.):

  • region - AWS_REGION | AWS_DEFAULT_REGION
  • key id - AWS_ACCESS_KEY | AWS_ACCESS_KEY_ID
  • secret key - AWS_SECRET_KEY | AWS_SECRET_ACCESS_KEY

Cloudflare

For cloudflare commands (cf-*):

  • zone - CLOUDFLARE_ZONE
  • email - CLOUDFLARE_EMAIL
  • api key - CLOUDFLARE_API_KEY

Color

Uses @buzuli/color, so you can adjust the color scheme using its config options:

Usage

ops <command>

Commands:
  ops acm-import <pem-cert> <private-key>   Imports a pem-format cert into ACM
  ops acm-info <arn>                        show details for a certificate
  ops acm-list                              list all ACM certificates
  ops alarms                                list configured cloudwatch alarms
  ops ami-list                              list AMIs in the current region
  ops ami-publish <region> <ami>            make the identified AMI public
  ops ami-replicate <region> <ami>          replicate an AMI from one region to
                                            all others
  ops ami-unpublish <region> <ami>          make the identified AMI private
  ops aws-health                            list aws health events
  ops aws-ip-ranges                         IP ranges owned by AWS
  ops aws-regions                           List out the AWS regions
  ops cf-log-fields                         CloudFlare log fields
  ops cf-ray <ray-id>                       fetch the Cloudflare log record for
                                            the supplied Ray ID
  ops cf-stats                              CloudFlare stats
  ops couch-follow <url>                    follow a CouchDB change feed
  ops couch-replicate <document> [dst-doc]  replicate a document from one
                                            CouchDB to another, replacing (new
                                            _rev) if the document already exists
  ops couch-rewrite <document> <path>       rewrite a single key within a
  [value]                                   CouchDB document
  ops docker-tags <image>                   fetch the list of tags for an image
                                            from docker hub
  ops ec2-by-age                            list all AWS instances in a region
                                            by age
  ops ec2-can-run                           test if a particular EC2
                                            configuration will run
  ops ec2-find                              find an EC2 instance
  ops ec2-ips                               List elastic IPs for the region
  ops ec2-limits                            EC2 limits applied for this account
  ops ec2-new-docker-swarm                  create a docker swarm cluster
  ops ec2-state <instance>                  Check or alter the state of an EC2
                                            instance
  ops ec2-uptimes                           list AWS instances in a region by
                                            uptime
  ops emr-cluster-info <cluster>            Get details on a single EMR cluster
  ops emr-clusters                          List out EMR clusters for a region
  ops http-get <url>                        simple http GET against a URL
  ops lambda-functions                      list out an account's AWS Lambda
                                            functions
  ops micro-monitor <url>                   check the status of a server running
                                            micro-monitor
  ops npm-downloads [time-window]           fetch download count data from
  [...options]                              api.npmjs.org
  ops npm-versions <pkg>                    provide a summary of package version
                                            info for an npm package
  ops nsq-peek <topic>                      peek at messages in the named topic
  ops nsq-send <topic> <message>            send a message to an NSQ topic
  ops proxy <url>                           proxies to a remote URL and logs
                                            traffic for debugging
  ops s3-buckets                            list out region S3 buckets
  ops s3-info <bucket> <key>                Get metadata for an S3 object
  ops s3-list <bucket>                      List keys in an s3 bucket
  ops salt                                  generate a url-safe, base64 encoded
                                            salt for use in sharing resources
  ops site-poll <url>                       Check on the status of a site

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]
11.4.1

4 years ago

11.4.0

4 years ago

11.3.5

4 years ago

11.3.4

4 years ago

11.3.3

4 years ago

11.3.2

4 years ago

11.3.1

4 years ago

11.3.0

4 years ago

11.2.1

4 years ago

11.2.0

4 years ago

11.1.0

5 years ago

11.0.2

5 years ago

11.0.1

5 years ago

11.0.0

5 years ago

10.0.0

5 years ago

9.8.0

5 years ago

9.7.0

5 years ago

9.6.2

5 years ago

9.6.1

5 years ago

9.6.0

5 years ago

9.5.1

5 years ago

9.5.0

5 years ago

9.4.0

5 years ago

9.3.0

5 years ago

9.2.0

5 years ago

9.1.1

5 years ago

9.1.0

5 years ago

9.0.0

5 years ago

8.9.0

5 years ago

8.8.0

5 years ago

8.7.0

5 years ago

8.6.2

5 years ago

8.6.1

5 years ago

8.6.0

5 years ago

8.5.0

5 years ago

8.4.0

5 years ago

8.3.3

5 years ago

8.3.2

5 years ago

8.3.1

5 years ago

8.3.0

5 years ago

8.2.3

6 years ago

8.2.2

6 years ago

8.2.1

6 years ago

8.2.0

6 years ago

8.1.0

6 years ago

8.0.0

6 years ago

7.5.0

6 years ago

7.4.0

6 years ago

7.3.1

6 years ago

7.2.0

6 years ago

7.1.0

6 years ago

7.0.0

6 years ago

6.1.0

6 years ago

6.0.1

6 years ago

6.0.0

6 years ago

5.9.0

6 years ago

5.8.0

6 years ago

5.7.1

6 years ago

5.7.0

6 years ago

5.6.0

6 years ago

5.5.0

6 years ago

5.4.0

6 years ago

5.3.0

6 years ago

5.2.2

6 years ago

5.2.1

6 years ago

5.2.0

6 years ago

5.1.1

6 years ago

5.1.0

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

4.21.1

6 years ago

4.21.0

6 years ago

4.20.0

6 years ago

4.19.0

6 years ago

4.18.0

6 years ago

4.17.2

6 years ago

4.17.1

6 years ago

4.17.0

6 years ago

4.16.1

6 years ago

4.16.0

6 years ago

4.15.3

6 years ago

4.15.2

6 years ago

4.15.1

6 years ago

4.15.0

6 years ago

4.14.1

6 years ago

4.13.0

6 years ago

4.12.3

6 years ago

4.12.2

6 years ago

4.12.1

6 years ago

4.12.0

6 years ago

4.11.1

6 years ago

4.11.0

6 years ago

4.10.1

6 years ago

4.9.0

6 years ago

4.8.0

6 years ago

4.7.0

6 years ago

4.6.1

6 years ago

4.5.5

6 years ago

4.5.4

6 years ago

4.5.3

6 years ago

4.5.2

6 years ago

4.5.1

6 years ago

4.5.0

6 years ago

4.4.0

6 years ago

4.3.0

6 years ago

4.2.2

6 years ago

4.2.1

6 years ago

4.2.0

6 years ago

4.1.3

6 years ago

4.1.2

6 years ago

4.1.1

6 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.10.2

6 years ago

2.9.1

6 years ago

2.9.0

6 years ago

2.8.2

6 years ago

2.8.1

6 years ago

2.8.0

6 years ago

2.7.6

6 years ago

2.7.5

6 years ago

2.7.4

6 years ago

2.7.3

6 years ago

2.7.2

6 years ago

2.7.1

6 years ago

2.7.0

6 years ago

2.6.0

6 years ago

2.5.0

6 years ago

2.4.2

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago