All Products
Search
Document Center

Cloud Config:Condition rules

Last Updated:Nov 27, 2023

This topic describes the concepts, use scenarios, and core features of condition rules.

Condition rules

Cloud Config provides condition rules to help you create custom rules in a simple manner. Compared with custom rules that are based on Function Compute, condition rules can be created without the need to upload complete code. Condition rules are independent of programming languages. However, the following conditional elements are required when you create a condition rule: resource feature, operator, and expected value. Cloud Config also provides quick debugging capabilities that help you create custom rules with high efficiency.

Use scenarios

Cloud Config recommends that you use rules that are created by using rule templates to evaluate cloud resources. If the predefined rule templates no longer meet your business requirements or custom evaluation logic is required, we recommend that you create custom rules that are based on conditions.

Core features

  • Flexibility: Compared with rule templates, condition rules can include custom compliance conditions.

  • Ease of use: Compared with custom rules that are based on Function Compute, condition rules can be created without the need to write code. You can perform simple configurations to define conditions.

  • Compatibility: Condition rules are seamlessly integrated with existing features of Cloud Config, such as compliance package, resource groups, evaluation results, and incompliance remediation.

  • Various resource properties: Cloud Config supports more than 70 Alibaba Cloud services, more than 180 resource types, and approximately 3,000 resource properties.