Skip to content

Nushell and AWS service reference

Few days ago I discovered nushell and I immediately fell in love with it.

After some time spent in porting my previous cmder configuration/helpers/backup scripts to nushell, I decided to play around with some nice scripts to help with AWS cloud development routine tasks.

The first output is nu-aws-service-reference: a Nushell module to interactively browse and discover AWS Service Authorization Reference.

It has been mentioned in This week in Nushell: cool!

How it works

This little helper can be used in Nushell as awssr and accepts two string parameters (with tab completion!): service name (e.g. s3) and action name (e.g. ListBucket).

AWS service reference data are obtained programmatically via http get as suggested in the AWS Service Authorization Reference docs.

A table of the in-memory sqlite database is used to cache the list of services and corresponding reference URLs, as suggested in nushell#12801.

Each service action list is then served as completion context.

The selected action reference is finally enriched with link to Permissions and displayed in the terminal.