Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in AWS by (19.1k points)

I am trying to use aws container service as per the documentation in http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_GetStarted.html

The below error is thrown when running the command:

aws ecs list-container-instances --cluster default

You must specify a region. You can also configure your region by running "aws configure".

The documentation does not mention anything about specifying a default region. How do we do it in a console?

1 Answer

0 votes
by (44.3k points)

Use this command in the AWS CLI:

aws ecs list-container-instances --cluster default --region us-east-1 

>> use your region (region list - http://docs.aws.amazon.com/general/latest/gr/rande.html)

Or you can use this to provide the region:


export AWS_DEFAULT_REGION=us-east-1 //your region has to be specified

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.7k users

Browse Categories

...