We use machine learning technology to do auto-translation. Click "English" on top navigation bar to check Chinese version.
Announcing Amazon Web Services Config now supports recording exclusions by resource type
Today, we’re excited to announce the general availability of a new feature within Amazon Web Services Config that lets you exclude resource types in the configuration recorder. This launch will be particularly useful for customers who identify high volume resource types that they don’t need. You will also be able to continue to record all current and future supported resource types but exclude the ones you don’t want in the configuration recorder.
In this post, we will demonstrate how you can view the top 10 resource types (by volume of configuration items in Amazon Web Services Config) in Amazon CloudWatch. Then, we will show you how you can start excluding specific resource types in the Amazon Web Services Config configuration recorder.
Creating a CloudWatch graph to show the top 10 resource types
- Navigate to the
CloudWatch console . - In the left navigation menu, click on Dashboards .
- Click Create dashboard .
- Name the dashboard aws-config-dashboard and click Create dashboard .
- Select Bar graph and then click by Next .
- Select Metrics and click Next .
- In the right hand section, select Add math and then select Start with empty expression .
- Enter in the below math expression and click Apply .
SORT(SEARCH('{AWS/Config,ResourceType} MetricName="ConfigurationItemsRecorded" NOT ResourceType="All"',"Sum",86400),SUM, DESC, 10)
- Under the Label column, change the name to Resource Type .
- In the upper left hand corner, Rename the graph to Top 10 Configuration Items Recorded by Resource Types .
- Click Create widget .
- Click Save, to then save the dashboard.

Figure 1: Amazon CloudWatch graph showing top 10 configuration items recorded
Set up resource exclusion by resource type in Amazon Web Services Config
In this section, we will setup resource exclusion by resource type in Amazon Web Services Config to exclude specific resource types that you no longer wish to capture. This allows you to continue to record all other supported resource types but only exclude the ones you identified previously using the CloudWatch metric. The following steps will show you how to set up the configuration recorder:
- Navigate to the
Amazon Web Services Config console . - Choose Settings .
- Choose Edit .
- Select Record all current and future resource types with exclusions .
- Under the Resource type section, select the pull down list and select the resource types you would like to exclude from being recorded by Amazon Web Services Config. In this list, you can select multiple resource types to be excluded.

Figure 2: Amazon Web Services Config settings for resource exclusion by resource type
Please Note : This is where you can add some of the resource types that were captured by your CloudWatch metric showing the top resource types with the most configuration items.
- Select Save .
- Under the General setting sections, you will see the list of excluded resources types.

Figure 3: Amazon Web Services Config settings for the configuration recorder
Clean up
If you like to remove the CloudWatch dashboard that was created in the previous section, you can do the following steps:
- Navigate to the
CloudWatch console . - Select the aws-config-dashboard dashboard and click Delete.
Conclusion
In this blog, we showed how you can use CloudWatch to display the top 10 resource types that have the highest volume of configuration items. We then showed how you can use the new feature of Amazon Web Services Config to exclude specific resource types from being recorded that you decided were no longer needed for your business requirements. Please refer to
About the authors
The mentioned AWS GenAI Services service names relating to generative AI are only available or previewed in the Global Regions. Amazon Web Services China promotes AWS GenAI Services relating to generative AI solely for China-to-global business purposes and/or advanced technology introduction.