How To Fix aws Command Error “You must specify a region”

Published Date Author: , Posted July 29th, 2021 at 1:55:51pm

I was getting error “You must specify a region” when running any aws CLI command. The fix:

Using the aws command:

which will automatically add the following to the file ~/.aws/config:

You many simply edit the ~/.aws/config file yourself and append the same thing:

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.