DEV Community

Cover image for AWS CLI: Make your life easier with This one change
Jerry
Jerry

Posted on

AWS CLI: Make your life easier with This one change

Summary

Did you know you can use AWS CLI in interactive mode with autocomplete !?

So, this mean no more looking up commands or parameters for different services when using the AWS CLI.

Requirements

Before trying this out, make sure you have the AWS CLI version 2.

⚠️ Note: This is required!

Getting started

There are a few ways to enable this feature.

1. Using the environment variable

export AWS_CLI_AUTO_PROMPT=on-partial
Enter fullscreen mode Exit fullscreen mode

or

export AWS_CLI_AUTO_PROMPT=on
Enter fullscreen mode Exit fullscreen mode

2. Using CLI Parameter

aws --cli-auto-prompt
Enter fullscreen mode Exit fullscreen mode

3. Using AWS CLI config (Save it to your preference)

aws configure set cli_auto_prompt on-partial
Enter fullscreen mode Exit fullscreen mode

Demo

Here is a little demo of this feature in action.

What a time saver! No more looking up parameters for AWS services when using the CLI.

Try it out for yourself!

And... That’s it.

If you found this helpful be sure to like and comment πŸ™β€οΈ (Thanks!)

Top comments (0)