By Pablo Puig
Cloud Config monitors and tracks the configuration changes of your resources and evaluates configuration compliance. Cloud Config provides managed rules to evaluate resources. However, if the managed rules provided by Alibaba Cloud do not meet your requirements, you can create custom rules based on Function Compute. When a rule is triggered, Cloud Config invokes the corresponding rule function to evaluate the associated resources and returns the compliance evaluation results of the resources.
The following step-by-step guide explains how to develop and create a Cloud Config custom rule from the Alibaba Cloud console. The diagram below describes the steps required:
Note: Before you create a Cloud Config custom rule, you must create a function for the rule in Function Compute first.
Note: For this demo, I’m going to select the Creation Method of Function Template and use the aliyun-config-python3 template for my function.
Step 4: Configure your function by entering the following properties:
Once you have introduced all properties, click Next.
Once your Cloud Config custom rule is created you can click Return to Rule List. You will find your custom rule on the list.
The article explained Cloud Config custom rules and how to create them using Function Compute functions.
Alibaba Cloud Blockchain Service Team - December 26, 2018
Aliware - October 20, 2020
Alibaba Developer - September 28, 2021
Alibaba Clouder - February 14, 2020
Alibaba Clouder - April 26, 2019
Alibaba Clouder - April 12, 2021
Alibaba Cloud Function Compute is a fully-managed event-driven compute service. It allows you to focus on writing and uploading code without the need to manage infrastructure such as servers.Learn More
Alibaba Cloud is committed to safeguarding the cloud security for every business.Learn More
A configuration audit service that provides configuration history of enterprise resources in Alibaba Cloud and audits the compliance of resource configurations.Learn More
Simple, secure, and intelligent services.Learn More
More Posts by Alibaba Cloud Community