- Mais recentes
- Mais votos
- Mais comentários
The AWS Resource Groups Tagging API (which Boto3 is interacting with when you use the 'resourcegroupstaggingapi' client) will only return resources that are taggable and that are tagged at least once. This is likely why you're seeing a smaller number of resources compared to the AWS Tag Editor, which displays all resources, regardless of whether or not they have been tagged.
As I know, there is no direct way to get a list of all resources in your AWS account regardless of whether they are tagged or not using AWS CLI or Boto3. AWS does not have a unified API call to retrieve all resources. You would have to call each service individually and handle pagination and other issues for each.
However, there are a couple of possible workarounds:
-
AWS Config: AWS Config provides a detailed view of the configuration of AWS resources in your AWS account. This includes how the resources are related to one another and how they were configured in the past so that you can see how the configurations and relationships change over time.
-
Third-party tools: There are some third-party tools, like CloudMapper, CloudCustodian, etc., that can collect this information by making describe calls for all supported resource types.
Remember that in each case, you're likely to encounter differences due to the types of resources that each method can discover. This is primarily driven by the permissions in the IAM policy for the role that is performing the action.
Conteúdo relevante
- AWS OFICIALAtualizada há 7 meses
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há 2 meses
Thanks. You are correct even AWS config misses a few types of resource types