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

updaws

v1.3.0

Published

Updates ~/.aws/config [default] section with clipboard credentials

Downloads

16

Readme

updaws

This simple package is made for updating the AWS CLI credentials in the ~/.aws/config file on macOS by reading from the clipboard.

Usage

See screenshots below for more details.

  1. Copy contents from the AWS SSO credentials screen to your clipboard.
  2. Run updaws in your terminal.
  3. Profit!

If you want to get real fancy, you can save the credentials you copied to a named profile by giving updaws a profile name as an argument.

$ updaws my-profile-name

Which will update the ~/.aws/config file with the following new section:

[profile my-profile-name]
region=us-east-1
output=text
aws_access_key_id=ASIA6GGZZ5SSAMPSES
aws_secret_access_key=78LR3IUSAMPLE9vnw+tYLCOOVjhwKYc2pBpV
aws_session_token=IQoJb3JpZ2luX2SAMPLEkHwdKmrgA

And then you can use this credentials in the AWS CLI using the --profile flag:

$ aws s3 ls --profile my-profile-name

More Details

updaws expects that the contents of the clipboard be in the following format (because the AWS SSO credentials screen is in this format):

[SSO_Profile_Name]
aws_access_key_id=ASIA6GGZZ5SSAMPSES
aws_secret_access_key=78LR3IUSAMPLE9vnw+tYLCOOVjhwKYc2pBpV
aws_session_token=IQoJb3JpZ2luX2SAMPLEkHwdKmrgA

If updaws does not find the aws_access_key_id, aws_secret_access_key, or aws_session_token in your clipboard, it will not update your ~/.aws/config file.

updaws is for people who have multiple AWS SSO profiles and want to easily update their credentials in the ~/.aws/config file. Maybe aws sso login doesn't work for you, or you just want to update your credentials without having to open the AWS CLI. You probably see a screen something like this one, and Option 1 doesn't work for you, either.

AWS SSO Login Screen

updaws is for Option 2 people. Click on option 2, and you'll see a screen like this one.

AWS SSO Login Screen

Click to copy the contents of the screen to your clipboard then run updaws in your terminal. It will update your ~/.aws/config file with the new credentials. You'll see some output like this:

macOS terminal

Go Team Option 2!