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

awssopilot

v1.0.3

Published

Automates AWS SSO token renewal and generates IAM credentials, supporting multi-profile management

Downloads

213

Readme

awssopilot

License: MIT Release

  1. :notebook_with_decorative_cover: Description
  2. :warning: Before running
  3. :writing_hand: Syntax
  4. :hammer: Usage
  5. :bookmark_tabs: Options
  6. :monocle_face: Examples
  7. :page_with_curl: License
  8. :heart: Contribution

# Description

awssopilot is a command-line tool that automates AWS SSO login for multiple profiles. It supports various login methods such as email/password, phone call, or app-based verification. Additionally, it integrates with yawsso to configure IAM credentials once the login process is completed.

# Before Running

Ensure that your AWS SSO profiles are configured using aws sso configure and your profiles are configured in a JSON file named awssopilot.config. The format of the configuration file should include the following details:

  • profiles: An array of AWS SSO profiles to log into.
  • email: The email address associated with the AWS account.
  • password: The password for the AWS account.
  • phone: Last two digits of the phone number for phone call-based authentication.
  • type: The authentication type (call for phone call or app for app-based verification).

The awssopilot.config file should be placed in the user's home directory (Linux ~/awssopilot.config, Windows %userprofile%/awssopilot.config).

# Syntax

The general syntax for using awssopilot is:

awssopilot [OPTIONS]

# Usage

Basic usage example:

awssopilot

This will automatically attempt to log into all profiles specified in the awssopilot.config file.

# Options

N/A

# Examples

Linux: ~/awssopilot-config
Windows: %userprofile%/awssopilot-config

{
    "profiles": [
		"profile1",
		"profile2",
		"profile3"
    ],
    "email": "[email protected]",
    "password": "password",
    "type": "call",
    "phone": "last_two_phone_digits"
}

App output:

Setting profile: profile1
    Loading url: https://device.sso.eu-west-1.amazonaws.com/?user_code=XXXX-XXX
    Approving code...
    Logging user...
    Loading app code...
    Awaiting approval of code: 59
    Approving access...
    Awaiting graceful time...
    Executing YAWSSO...
------------------------------------------
    SSO profile 'profile1' token renewed
    IAM profile 'profile1-iam' configured
------------------------------------------

Call output:

Setting profile: profile1
    Loading url: https://device.sso.eu-west-1.amazonaws.com/?user_code=XXXX-XXX
    Approving code...
    Logging user...
    Logging with phone call...
    Awaiting approval call...
    Approving access...
    Awaiting graceful time...
    Executing YAWSSO...
-----------------------------------------
    SSO profile 'profile1' token renewed
    IAM profile 'profile-iam' configured
-----------------------------------------

# License

Distributed under the MIT License. See LICENSE for more information.

# Contributing

We welcome contributions to improve the functionality of awssopilot! Here's how you can contribute:

  1. Fork the project
  2. Create a new feature branch (git checkout -b feature/YourFeature)
  3. Make your changes and commit (git commit -m 'Add feature')
  4. Push to your branch (git push origin feature/YourFeature)
  5. Open a pull request

Your contributions will be greatly appreciated!

:star: Feel free to contribute :star: