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

@schematichq/taskonaut

v1.1.0

Published

Interactive CLI tool for exec into AWS ECS tasks (containers) - from [SchematicHQ](https://schematichq.com)

Downloads

62

Readme

taskonaut


░██████╗░█████╗░██╗░░██╗███████╗███╗░░░███╗░█████╗░████████╗██╗░█████╗░
██╔════╝██╔══██╗██║░░██║██╔════╝████╗░████║██╔══██╗╚══██╔══╝██║██╔══██╗
╚█████╗░██║░░╚═╝███████║█████╗░░██╔████╔██║███████║░░░██║░░░██║██║░░╚═╝
░╚═══██╗██║░░██╗██╔══██║██╔══╝░░██║╚██╔╝██║██╔══██║░░░██║░░░██║██║░░██╗
██████╔╝╚█████╔╝██║░░██║███████╗██║░╚═╝░██║██║░░██║░░░██║░░░██║╚█████╔╝
╚═════╝░░╚════╝░╚═╝░░╚═╝╚══════╝╚═╝░░░░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═╝░╚════╝░

Interactive CLI tool for exec into AWS ECS tasks (containers) - from SchematicHQ

taskonaut is a combination of "Task" (ECS tasks) and "Astronaut"

We followed Command Line Interface Guidelines, An open-source guide to help you write better command-line programs, taking traditional UNIX principles and updating them for the modern day.

Features

  • 🔐 AWS SSO authentication support
  • 🚀 Interactive cluster selection
  • 📦 Task listing and selection
  • 🐳 Container execution
  • ⚙️ Profile and region management
  • 💾 Persistent configuration
  • 🎨 Beautiful CLI interface

Prerequisites

[!WARNING] Make sure you have met the Amazon ECS Exec prerequisites.

  • Node.js 18+
  • AWS CLI v2
  • AWS Session Manager Plugin
  • AWS credentials configured (supports AWS SSO, access keys, etc.)

Installation

npm install -g taskonaut

Usage

# Configure AWS profile and region
taskonaut config set

# Show current configuration
taskonaut config show

# Clear configuration
taskonaut config cleanup

# Run diagnostics to check environment setup
taskonaut doctor

# Start interactive session
taskonaut

Command Line Options

Usage: taskonaut [options] [command]

✨ Interactive ECS task executor

Options:
  -h, --help  display help for command

Commands:
  config      Manage configuration settings
  doctor      Run diagnostics to check your environment setup

Configuration

Configuration is stored in:

  • macOS: ~/Users/$USER/Library/Preferences/taskonaut-nodejs
  • Linux: ~/.config/taskonaut-nodejs
  • Windows: %APPDATA%\taskonaut-nodejs

Troubleshooting (macOS)

[!CAUTION] Error messages:

  • Task not found: Ensure the ECS task is running
  • Container not found: Task may have zero containers
  • Invalid AWS profile: Configure AWS profile first
  • No clusters found: Ensure you have access to ECS clusters in the selected AWS region.
  • AWS CLI is not installed: Install AWS CLI v2.
  • Session Manager Plugin is not installed: Install the Session Manager Plugin.
  • AWS initialization failed: Check your AWS credentials and network connectivity.

  • AWS CLI not found
brew install awscli
  • Session Manager Plugin not found
brew install session-manager-plugin
  • Invalid AWS profile Ensure your AWS profile is configured correctly. If using AWS SSO, log in with:
aws sso login --profile your-profile
  • AWS Credentials not configured

    Configure your AWS credentials by setting up your ~/.aws/credentials and ~/.aws/config files. You can use aws configure to set up access keys, or set up AWS SSO profiles.

  • No clusters found

    Ensure you have access to ECS clusters in the selected AWS region and that your AWS credentials have the necessary permissions.

License

MIT

Contributing

Pull requests welcome! Please read CONTRIBUTING.md for details.