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

I am trying to use aws container service as per the documentation in

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.4k points)

Use this command in the AWS CLI:

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

>> use your region (region list -

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

Browse Categories