How To Get All Resources Deployed In AWS

How To Get All Resources Deployed In AWS

How To Get All Resources Deployed In AWS

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we discussed how to create conformance pack in AWS config.

https://cloudaffaire.com/how-to-create-conformance-pack-in-aws-config/

Sometimes you may want to get the list of all resources deployed in your AWS landscape. You may be using a free tire account and getting billed for some resources that you cannot identify where its deployed. Or you may have a request from your manager to give a complete inventory of your AWS landscape. Or you have a security breach in a particular VPC and want to get all the resources deployed in your VPC. You can use AWS config service to create an inventory of all your AWS resources for the supported AWS services. An inventory serves as a CMDB for your AWS landscape recording all the configuration changes.

How To Get All Resources Deployed In AWS:

Prerequisites:

  • AWS CLI installed and configured with proper access. You can use below link to install and configure AWS CLI.

https://cloudaffaire.com/how-to-install-aws-cli/

https://cloudaffaire.com/how-to-configure-aws-cli/

Step 1: Create an S3 bucket to store your config recordings.

Step 2: Create an IAM role for AWS Config service.

Step 3: Enable AWS Config service.

Warning: AWS Config has some additional cost associated with it, please refer the latest pricing doc for additional details.

Step 4: Create a configuration delivery channel for AWS Config.

Step 5: Start AWS config recordings.

Note: It will take some time for the AWS Config service to discover all the resources deployed in your AWS account and create an inventory out of that. Give it some time, take a coffee break 😊

Once you are back, login to your AWS console and navigate to AWS Config dashboard.

How To Get All Resources Deployed In AWS

If you want to get all the resources details, click on the “Resources” in the left panel.

how to list all the resources in aws

Step 6: Get the list of all AWS services running in your AWS account.

If you want to get the list directly from the AWS console, click on the “Advanced queries” in the left panel and then click on “New query”.

see all running services in aws

Write “SELECT *” in the query editor to get details of all the resources deployed in the account and click on “Run”

list all resources deployed in a vpc

Finally check on the “Export as” to export the report once generated.

How To Get All Resources Deployed In AWS

Next, we will delete all the resources created in this demo to avoid any additional cost.

Step 7: Clean up.

Note: AWS config is a regional service and will give you the resource inventory for current region only. If you have deployed resources in multiple regions, then repete the above steps for each region, or use an config aggregator to gather data from all regions (covered in next blog post)

Hope you have enjoyed this article. To know more about AWS Config, please refer below official documentation

https://docs.aws.amazon.com/config/index.html

Leave a Reply

Close Menu