terracognita icon indicating copy to clipboard operation
terracognita copied to clipboard

filter: by resources ID or attributes value

Open talset opened this issue 4 years ago • 0 comments

Abstract

resources can be filtered by tags but it would be nice to extend it to

  • Resources IDs
  • Attributes value

Proposal

example from terraformer:

--filter Type=sg;Name=vpc_id;Value=VPC_ID

This show a filter on security group service which have vpc_id=VPC_ID as attribute.

Other example: --filter="Name=tags.project;Value=MyTagValue"

Filter every resource which have tags attribute containing project=MyTagValue

It could also simply be from a resource id

--filter="resource=ResourceId"

Implementation

Open issues (if applicable)

talset avatar Sep 13 '21 12:09 talset