AWS CLI: AWS CLI version 2. Tips and tricks. Part 1. Wizard

AWS on re:Invent 2020 announced many new features and enhancements to AWS CLI. In this post I will try to describe some Wizard features which boosts productivity:

Let us quickly remind ourselves about command structure:

Every command starts with (guess what ) — aws, followed by service, then operation and then by parameters.

However, not all of us are AWS CLI gurus, and re-reading documentation every time to add all necessary parameters significantly slows down the process. Here is a useful feature: AWS CLI wizard command.

In the example below I will create a new DynamoDB table

  • aws dynamodb wizard returns a warning that I need to specify a subcommand:
  • How can we figure out what subcommand to use? Imagine that I don’t know that the command is new-table, and I type create-table instead:
  • As you can see it does not work, but AWS CLI returns a tip: valid choices are new-table
  • Typing aws dynamodb wizard new-table, bring us to GUI:
  • Look at that! It gives you all the necessary parameters to fill and asks for a Yes/No on optional parameters:
  • Navigation is simple: Use Arrow keys, TAB, and SHIFT+TAB
  • There are more Easter eggs though — Preview menu
  • You can preview output as AWS CLI command or AWS CloudFormation YAML template.

The wizard feature is fantastic.

Please note:

  1. Not all services support wizard (for example Lightsail)- you will figure it out from the output

Note: DynamoDB option returns error with wizard available, while Lightsail does not.

In summary. The Wizard feature boosts productivity for beginners and gurus alike.

Stay tuned for Part 2!




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Designing a 24-bit VGA Adapter

Guild master — Is that a real job title?

[Unity ECS] Strategies to migrate your “data class”

Formatting time elements to match the current user’s locale

Where Do I Start (learning to code)?

Enterprise Kubernetes development with odo: The CLI tool for developers

A flow diagram of the inner and outer loops in a Kubernetes development process

Kubernetes and Docker Containerization : Why Implement It

Download Stickman: Draw Animation MOD APK v3.22

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
John Gakhokidze

John Gakhokidze

More from Medium

Google App Engine

Creating and Using Dynamic Libraries on Linux

Simple File Manager using AWS EFS

SFTP User To Access S3 Bucket