Open sdouche opened 6 years ago
This is a great idea indeed and it is on our roadmap since the AWS meetup in Berlin! So yes we will support multi region listing as it is definitely a needed feature that actually other CLI do not support.
Right now, we are in the process of finishing a major (re)design that improve the availability of our AWS modelling and that will allow great features to come. That is why the 0.1.6 is not out yet.
Anyway, back to our multi region support. Obviously, when doing a multi-region listing command, we will not be able to ask every AWS region because: too many, a bit silly, throttling issues, too many resource at once in RAM.
So in my opinion when doing a multi-region query we will rather focus on a subset of the regions. There are multiple ways of getting this subset before fetching and they could be:
awless
and obviously updatable.~/.awless/aws/rdf/...
) if no configurationAny ideas to make this a great feature are welcome in this issue.
Also we need to distinguish between: listing all instances in multi-region; listing all resources in multi-region; listing all resources in 1 region. Those are not the same features.
Right now I am understanding that we talk about the natural extension awless list instances --multi-regions ...
.
(Note that in the meantime: to see all the resources in a region you can do awless show us-west-2
for instance; to see all resources in your synced regions there is an hidden command awless web
where you can browse resources ...)
Hi @simcap I was not very clear in my proposal: the goal is to list all resources from one region. It's ok to me write the command for each region. The implementation would be something like this:
for each kind of resources
result = get resources
if result not null
display
Very simple implementation but extremely useful (I think).
Hello @sdouche, thanks for the suggestion.
The difficulty for listing all types of resources in one command is the choice of the columns to display (as entities with different types have different properties). It would be strange to display several tables one after the other with different number of columns and columns names.
One possible solution for that has been experimented in the (hidden) command awless list infra
(or access
/storage
/...). But as the result of this command was not totally satisfying (too verbose ?) and we did not have a clear use case for it, we did not make it public, nor create a list all
command.
What is your use case ? Do you have a better idea to display the results of such a command ?
Only common columns could be showed (ARN, resource type, creation date, ...). Imagine I want to find out which resources are not managed through CloudFormation in a specific region, I could list all stack resources arn then diff it with the list of all resources arn in the region.
Hi, It's always unpleasant to search your resources in your regions. It would be cool to have an
awless ls all
option list all resources created.Regards.