有没有办法列出 AWS 中的所有资源 [英] Is there a way to list all resources in AWS

查看:47
本文介绍了有没有办法列出 AWS 中的所有资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法列出 AWS 中的所有资源?对于所有地区,所有资源..例如列出所有EC2实例,所有VPC,API网关中的所有API等......我想列出我帐户的所有资源,因为我很难找到我可以找到的资源立即放弃.

Is there a way to list all resources in AWS? For all regions, all resources.. Such as list all EC2 instances, all VPCs, all APIs in API Gateway, etc... I would like to list all resources for my account, since it's hard for me to find which resources I can relinquish now.

推荐答案

此答案已弃用且不正确.有多种方法可以列出 AWS 资源(AWS 标签编辑器等).查看其他答案了解更多详情.

This answer is deprecated and is incorrect. There are several ways to list AWS resources (the AWS Tag Editor, etc.). Check the other answers for more details.

<小时>

没有

每个 AWS 服务(例如 Amazon EC2、Amazon S3)都有自己的一组 API 调用.此外,每个区域都是独立的.

Each AWS Service (eg Amazon EC2, Amazon S3) have their own set of API calls. Also, each Region is independent.

要获取所有资源的列表,您必须对每个区域的每个服务进行 API 调用.

To obtain a list of all resources, you would have to make API calls to every service in every region.

您可能想要激活 AWS Config:

AWS Config 提供您 AWS 账户中 AWS 资源配置的详细视图.这包括资源如何相互关联以及它们在过去是如何配置的,以便您可以了解配置和关系如何随时间变化.

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.

但是,AWS Config 仅收集有关 EC2/VPC 相关资源的信息,而不是您 AWS 账户中的所有信息.

However, AWS Config only collects information about EC2/VPC-related resources, not everything in your AWS account.

这篇关于有没有办法列出 AWS 中的所有资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆