Weeknotes: Week of January 2, 2022

AWS CLI tools, vim tips, and a new blogging setup!

aws-sso-cli

https://github.com/synfinatic/aws-sso-cli. Provides some convenience commands for working with AWS SSO roles at the command line.

Notes:

aws-shell

Not compatible with awscli v2! Instead just upgrade to the latest awscli v2 version for a nice auto-complete experience (see below)

awscli autocompletion

If you have latest awscli installed, run aws --cli-auto-prompt to enter an autocomplete mode. Documentation: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-prompting.html

Avoid having to type --cli-auto-prompt every time by exporting AWS_CLI_AUTO_PROMPT=on and then just run aws (and hit enter) and you’ll end up in autoprompt mode!

Find unique records in vim

You don’t have to use the shell! Vim has a built-in :sort u that will sort all lines in a file and remote duplicates. Run :help :sort for details.

Played around with Jekyll and Netlify!

Preparing to re-launch my blog with Jekyll, I ran through the Jekyll tutorial and published the result to Netlify! Notes along the way: