All Products
Search
Document Center

Cloud Config:Best practices for resource stability

Last Updated:Aug 28, 2026

Resource stability best practices in Cloud Config help you identify configuration risks that affect the continuity and reliability of your cloud resources. A compliance package is a predefined set of compliance rules that Cloud Config runs against your resources to check whether their configurations follow established best practices. This topic explains the background and workflow of resource stability checks and describes the default rules included in the compliance package.

Background

Risk management is a top priority for cloud customers. Many enterprises choose Alibaba Cloud to improve business continuity by leveraging the high availability of the Alibaba Cloud platform. Identifying cloud resource configuration risks efficiently and comprehensively is critical for maintaining business continuity.

The following case study illustrates a system failure caused by improper cloud resource configuration:

An enterprise ran a core system on a Basic Edition ApsaraDB RDS instance, which is designed for test environments. The system ran without issues during periods of low traffic, masking the underlying configuration problem. During a major promotion, business volume increased by two to three times and real-time data processing volume increased by more than 10 times. The database instance responded slowly, which disrupted normal business operations. The root cause was identified as an improper database instance configuration. The issue was resolved after the instance specifications were upgraded.

How it works

Cloud Config performs static configuration compliance checks on your core resources, including compute, database, storage, networking, load balancing, and security resources. When non-compliant configurations are detected, Cloud Config generates a report. You can download the report and remediate the issues, for example, by upgrading instance specifications or adjusting configurations.

Static configurations are cloud resource configuration items such as instance specifications and instance deployment zones.

The following figure shows the workflow of the resource stability best practices scenario. Scenario flow

Default rules

The compliance package includes 85 default rules. The rules are grouped by Alibaba Cloud service in the following sections. Each rule checks a specific configuration item and reports whether the resource is compliant or non-compliant.

ServiceNumber of rules
ApsaraDB RDS10
ApsaraDB for Redis10
ApsaraDB for MongoDB7
PolarDB8
NAT Gateway2
SLB6
ALB3
CEN2
ECS9
CDN2
Message Queue for Apache Kafka1
RocketMQ1
Elasticsearch6
OSS3
ACK3
EIP2
AnalyticDB for MySQL3
ECI1
Bastionhost1
Anti-DDoS1
Internet Shared Bandwidth1
CEN bandwidth plans1
PolarDB-X2

ApsaraDB RDS

Rule nameRule description
Enable log backup for an ApsaraDB RDS instanceIf log backup is not enabled, data cannot be recovered when local binary logs are lost. If log backup is enabled for the ApsaraDB RDS instance, the instance is considered compliant.
Use dedicated ApsaraDB RDS instancesIf the ApsaraDB RDS instance uses a dedicated instance specification, the instance is considered compliant.
SQL audit log retention of ApsaraDB RDS instances meets the specified requirementIf SQL audit is enabled for an ApsaraDB RDS MySQL instance and the log retention period is greater than or equal to the specified value, the instance is considered compliant. Default value: 180 days.
Use multi-zone ApsaraDB RDS instancesIf the ApsaraDB RDS instance uses multi-node deployment, the instance is considered compliant.
Disable public network access for ApsaraDB RDS instancesIf no public network access endpoint is configured for the ApsaraDB RDS instance, the instance is considered compliant. We recommend that you do not configure Direct Internet Access for ApsaraDB RDS instances in production environments. Direct Internet Access exposes instances to attacks.
Set a reasonable maintenance window for ApsaraDB RDS instancesIf the maintenance window of the ApsaraDB RDS instance falls within one of the time ranges specified by the parameter, the instance is considered compliant. If the maintenance window overlaps with business peak hours, your business may be affected.
Enable deletion protection for ApsaraDB RDS instancesIf deletion protection is enabled for the ApsaraDB RDS instance, the instance is considered compliant. This rule does not apply to subscription instances; such instances are considered not applicable.
Configure a proper security whitelist for ApsaraDB RDS instancesIf a security whitelist is configured for the ApsaraDB RDS instance and the whitelist does not contain 0.0.0.0/0, the instance is considered compliant.
Use cluster series ApsaraDB RDS instancesIf the ApsaraDB RDS instance uses the series specified by the parameter, the instance is considered compliant. Default value: cluster edition or high-availability edition.
Check endpoint expiration of ApsaraDB RDS subscription instancesFor subscription resources, renew upfront to avoid service interruption caused by payment issues. If the expiration date of the prepaid instance is more than the specified number of days from the check time, the instance is considered compliant. Default value: 30 days. This rule does not apply to pay-as-you-go instances; such instances are considered not applicable.

ApsaraDB for Redis

Rule nameRule description
Check endpoint expiration of ApsaraDB for Redis subscription instancesIf the expiration date of an ApsaraDB for Redis prepaid instance is more than the specified number of days from the check time, the instance is considered compliant. Default value: 30 days. Instances with auto-renewal enabled are considered compliant. This rule does not apply to pay-as-you-go instances; such instances are considered not applicable.
Set a reasonable backup window for ApsaraDB for Redis instancesIf the automatic backup window of the ApsaraDB for Redis instance falls within one of the time ranges specified by the parameter, the instance is considered compliant. If the backup window overlaps with business peak hours, your business may be affected.
Do not set the IP whitelist of ApsaraDB for Redis instances to 0.0.0.0/0If the IP whitelist of the ApsaraDB for Redis instance is not set to 0.0.0.0/0, the instance is considered compliant.
Disable high-risk commands for ApsaraDB for Redis instancesIf high-risk commands are disabled for the ApsaraDB for Redis instance, the instance is considered compliant.
Use cluster edition ApsaraDB for Redis instancesIf the architecture type of the ApsaraDB for Redis instance is cluster edition, the instance is considered compliant.
Use Enterprise Edition ApsaraDB for Redis instancesIf the ApsaraDB for Redis instance is Enterprise Edition, the instance is considered compliant.
Upgrade ApsaraDB for Redis instances to the latest minor versionIf the ApsaraDB for Redis instance is upgraded to the latest minor version, the instance is considered compliant.
Enable release protection for ApsaraDB for Redis instancesIf release protection is enabled for the ApsaraDB for Redis instance, the instance is considered compliant.
Enable incremental backup for ApsaraDB for Redis instancesIf incremental backup is enabled for the ApsaraDB for Redis instance, the instance is considered compliant. This rule only applies to Tair instances; non-Tair instances are considered not applicable.
Use multi-zone ApsaraDB for Redis instancesIf the ApsaraDB for Redis instance uses multi-node deployment, the instance is considered compliant.

ApsaraDB for MongoDB

Rule nameRule description
Check endpoint expiration of ApsaraDB for MongoDB subscription clustersIf the expiration date of an ApsaraDB for MongoDB subscription cluster is more than the specified number of days from the check time, the cluster is considered compliant. Default value: 30 days. Clusters with auto-renewal enabled are considered compliant.
Enable log backup for ApsaraDB for MongoDB instancesIf log backup is enabled for the ApsaraDB for MongoDB instance, the instance is considered compliant.
Use dedicated or exclusive ApsaraDB for MongoDB instancesIf the ApsaraDB for MongoDB instance does not use a shared specification, the instance is considered compliant.
Do not set the IP whitelist of ApsaraDB for MongoDB instances to 0.0.0.0/0If the IP whitelist of the ApsaraDB for MongoDB instance is not set to 0.0.0.0/0, the instance is considered compliant.
Use multi-node deployment for ApsaraDB for MongoDB instancesIf the ApsaraDB for MongoDB instance uses multi-node deployment, the instance is considered compliant.
Enable release protection for ApsaraDB for MongoDB instancesIf release protection is enabled for the ApsaraDB for MongoDB instance, the instance is considered compliant.
Use multi-zone ApsaraDB for MongoDB instancesIf the ApsaraDB for MongoDB instance uses multi-node deployment, the instance is considered compliant.

PolarDB

Rule nameRule description
Check endpoint expiration of PolarDB subscription clustersFor subscription resources, renew upfront to avoid service interruption caused by payment issues. If the expiration date of the prepaid instance is more than the specified number of days from the check time, the instance is considered compliant. Default value: 30 days. Instances with auto-renewal enabled are considered compliant. This rule does not apply to pay-as-you-go instances; such instances are considered not applicable.
Use cluster edition PolarDB instancesIf the PolarDB edition is cluster edition or multi-master cluster edition, the instance is considered compliant. Exercise caution when using single-node databases because fault recovery is slow.
Set a reasonable maintenance window for PolarDB clustersIf the maintenance window of the PolarDB cluster falls within one of the time ranges specified by the parameter, the cluster is considered compliant. If the maintenance window overlaps with business peak hours, your business may be affected.
Do not set the IP whitelist of PolarDB instances to 0.0.0.0/0If the IP whitelist of the PolarDB instance is not set to 0.0.0.0/0, the instance is considered compliant.
Enable deletion protection for PolarDB clustersIf deletion protection is enabled for the PolarDB cluster, the cluster is considered compliant.
PolarDB database minor version status is stableIf the current database minor version status of the PolarDB cluster is stable, the cluster is considered compliant.
Enable hot standby cluster for PolarDB clustersIf the hot standby cluster is enabled for the PolarDB cluster and data is distributed across multiple zones, the cluster is considered compliant.
Secondary backup retention of PolarDB clusters meets the specified requirementIf the level-two backup retention period of the PolarDB cluster is greater than or equal to the specified number of days, the cluster is considered compliant. Default value: 30 days. If level-two backup is not enabled or the retention period is less than the specified number of days, the cluster is considered non-compliant.

NAT Gateway

Rule nameRule description
SNAT and DNAT entries of NAT gateways do not use the same EIPIf the SNAT and DNAT entries of the NAT gateway do not use the same EIP, the gateway is considered compliant. This rule does not apply to VPC NAT gateways; such gateways are considered not applicable.
Consistent bandwidth peak settings for multiple EIPs bound to SNAT entriesIf multiple EIPs bound to the SNAT entry of the NAT gateway are added to an Internet Shared Bandwidth instance or have the same bandwidth peak setting, the gateway is considered compliant. This rule does not apply to VPC NAT gateways; such gateways are considered not applicable.

SLB

Rule nameRule description
Enable health checks for all SLB listenersIf health checks are enabled for all running listeners of the SLB instance, the instance is considered compliant.
Check endpoint expiration of SLB subscription instancesFor subscription resources, renew upfront to avoid service interruption caused by payment issues. If the expiration date of the prepaid instance is more than the specified number of days from the check time, the instance is considered compliant. Default value: 30 days. Instances with auto-renewal enabled are considered compliant. This rule does not apply to pay-as-you-go instances; such instances are considered not applicable.
Enable release protection for SLB instancesIf release protection is enabled for the SLB instance, the instance is considered compliant.
SLB instance specifications meet requirementsIf the SLB instance specification is in the specified list, the instance is considered compliant. We recommend that you use SLB instances that meet performance requirements. Exercise caution when using shared-performance instances that cannot guarantee performance metrics.
Use multi-zone SLB instancesIf the SLB instance uses multi-node deployment, the instance is considered compliant.
Use multi-zone SLB instances and configure resources from multiple zones in server groupsIf the SLB instance uses multi-node deployment and the server groups used by all listeners have resources from multiple zones added, the instance is considered compliant.

ALB

Rule nameRule description
Enable health checks for all ALB listeners and forwarding rulesIf health checks are configured for all listeners and forwarding rules of the ALB instance, the instance is considered compliant.
Add at least the specified number of servers to the default forwarding rule of all ALB listenersIf the default forwarding rule associated with each listener of the ALB instance has at least the number of backend servers specified by the parameter, the instance is considered compliant. Default value: at least one server is considered compliant.
Enable deletion protection for ALB instancesDeletion protection prevents instances from being accidentally released. If deletion protection is enabled, the instance is considered compliant.

CEN

Rule nameRule description
Cross-region connection bandwidth of CEN instances meets the specified requirementIf the bandwidth allocated to all inter-region connections under the Cloud Enterprise Network (CEN) instance is greater than the value specified by the parameter, the instance is considered compliant. Default value: 1 Mbps.
Enable health checks for all VBR connections in CEN instancesIf health checks are configured for all VBRs associated with the Cloud Enterprise Network (CEN) instance, the instance is considered compliant.

ECS

Rule nameRule description
No duplicate IP address ranges across vSwitches in the same regionIf no duplicate IP address ranges exist across vSwitches in the same region, the configuration is considered compliant.
ECS instances are not in the Stopped stateIf the instance status of the ECS instance is not Stopped, the instance is considered compliant.
Check endpoint expiration of ECS subscription instancesFor subscription resources, renew upfront to avoid service interruption caused by payment issues. If the expiration date of the prepaid instance is more than the specified number of days from the check time, the instance is considered compliant. Default value: 30 days. Instances with auto-renewal enabled are considered compliant. This rule does not apply to pay-as-you-go instances; such instances are considered not applicable.
Set reasonable creation timepoints for automatic snapshot policiesIf the snapshot creation timepoints in the automatic snapshot policy fall within the time range specified by the parameter, the policy is considered compliant. Creating snapshots may temporarily reduce block storage I/O performance, typically by less than 10%, with brief instantaneous slowdowns. We recommend that you select timepoints outside business peak hours.
Do not open risky ports to all CIDR blocks for specified protocols in security groupsIf the inbound CIDR block of the security group is set to 0.0.0.0/0 and the port range of the specified protocol does not contain the specified risky ports, the configuration is considered compliant. If the inbound CIDR block is not set to 0.0.0.0/0, the configuration is considered compliant even if the port range contains the specified risky ports. If the detected risky ports are denied by a higher-priority authorization policy, the configuration is considered compliant. This rule does not apply to security groups used by cloud products or virtual suppliers; such security groups are considered not applicable.
Do not use deprecated ECS instance familiesIf the ECS instance does not use the instance families specified by the parameter, the instance is considered compliant. Default value: discontinued or shared instance families.
Use specified operating system versions for ECS instancesEnterprises can standardize OS versions within the organization and require all production hosts to run a unified operating system version. Operating systems that are no longer maintained by the vendor should be upgraded in time to prevent security vulnerabilities. If the English name of the operating system used by the ECS instance is in the specified whitelist or is not in the specified blacklist, the instance is considered compliant.
Enable release protection for ECS instancesIf release protection is enabled for the ECS instance, the instance is considered compliant.
Configure automatic snapshot policies for ECS disksIf an automatic snapshot policy is configured for the ECS disk, the disk is considered compliant.

CDN

Rule nameRule description
Configure CDN caching for domainsIf CDN caching and TTL are configured for the domain, the configuration is considered compliant.
Consistent origin configuration for CDN domains with OSS originIf the origin domain name of a CDN domain is set to an OSS domain name and the origin type is set to OSS, the configuration is considered compliant.

Message Queue for Apache Kafka

Rule nameRule description
Do not set the public IP whitelist of Message Queue for Apache Kafka instances to allow all IPsIf the public IP whitelist of the Message Queue for Apache Kafka instance is not set to allow access from all IPs, the instance is considered compliant.

RocketMQ

Rule nameRule description
Use Platinum Edition RocketMQ instancesIf the RocketMQ instance is Platinum Edition, the instance is considered compliant.

Elasticsearch

Rule nameRule description
Disable public network access or restrict IP access for Elasticsearch instancesIf public network access is disabled for the Elasticsearch instance or the whitelist is not set to allow access from all IPs, the instance is considered compliant.
Disable public network access to Kibana for Elasticsearch instancesIf public network access to Kibana is disabled for the Elasticsearch instance or the whitelist is not set to allow access from all IPs, the instance is considered compliant.
Do not use deprecated Elasticsearch instance specificationsIf the Elasticsearch instance does not use the specifications specified by the parameter, the instance is considered compliant.
Do not use deprecated Elasticsearch versionsIf the version of the Elasticsearch instance is not in the deprecated version range specified by the parameter, the instance is considered compliant.
Enable automatic backup for Elasticsearch instancesIf automatic backup is enabled for the Elasticsearch instance, the instance is considered compliant.
Use multi-zone Elasticsearch instancesIf the Elasticsearch instance uses multi-node deployment, the instance is considered compliant.

OSS

Rule nameRule description
Enable versioning for OSS bucketsIf versioning is not enabled, data that is overwritten or deleted cannot be recovered. If versioning is enabled for the OSS bucket, the bucket is considered compliant.
Prohibit public read/write access to OSS bucketsIf the ACL policy of the OSS bucket prohibits public read/write access, the bucket is considered compliant.
Enable zone-redundant storage for OSS bucketsIf zone-redundant storage (ZRS) is not enabled, OSS cannot provide consistent services when a data center becomes unavailable, which affects data recovery objectives. If ZRS is enabled for the OSS bucket, the bucket is considered compliant.

ACK

Rule nameRule description
Use Pro managed ACK clustersIf the ACK cluster is a Pro managed cluster, the cluster is considered compliant. This rule does not apply to non-managed clusters; such clusters are considered not applicable.
Upgrade ACK clusters to the latest versionIf the ACK cluster is upgraded to the latest version, the cluster is considered compliant.
Enable release protection for ACK clustersIf release protection is enabled for the ACK cluster, the cluster is considered compliant.

EIP

Rule nameRule description
Enable deletion protection for elastic IP addresses (EIPs)If deletion protection is enabled for the elastic IP addresses (EIPs), the EIP is considered compliant. This rule does not apply to EIPs created by service accounts or prepaid EIPs; such EIPs are considered not applicable.
Check endpoint expiration of subscription elastic IP addresses (EIPs)If the expiration date of the elastic IP addresses (EIPs) is more than the time range specified by the parameter from the current time, the EIP is considered compliant. Default value: 30 days. This rule does not apply to pay-as-you-go resources; such resources are considered not applicable.

AnalyticDB for MySQL

Rule nameRule description
Set a reasonable maintenance window for AnalyticDB for MySQL clustersIf the maintenance window of the AnalyticDB for MySQL cluster falls within one of the time ranges specified by the parameter, the cluster is considered compliant.
Enable log backup for AnalyticDB for MySQL clustersIf log backup is enabled for the AnalyticDB for MySQL cluster, the cluster is considered compliant.
Check endpoint expiration of AnalyticDB for MySQL Data Warehouse Edition instancesIf the expiration date of the AnalyticDB for MySQL Data Warehouse Edition instance is more than the time range specified by the parameter from the current time, the instance is considered compliant. Default value: 30 days. Instances with auto-renewal enabled are considered compliant. This rule only applies to subscription resources; pay-as-you-go instances are considered not applicable.

ECI

Rule nameRule description
Mount data volumes to ECI elastic container groupsIf data volumes are mounted to the Elastic Container Instance (ECI) elastic container group, the container group is considered compliant.

Bastionhost

Rule nameRule description
Check endpoint expiration of Bastionhost instancesIf the expiration date of the Bastionhost instance is more than the time range specified by the parameter from the current time, the instance is considered compliant. Default value: 30 days.

Anti-DDoS

Rule nameRule description
Check endpoint expiration of Anti-DDoS instancesIf the expiration date of the Anti-DDoS instance is more than the specified number of days from the current time, the instance is considered compliant. Default value: 30 days.

Internet Shared Bandwidth

Rule nameRule description
Check endpoint expiration of Internet Shared Bandwidth instancesIf the expiration date of the Internet Shared Bandwidth instance is more than the time range specified by the parameter from the current time, the instance is considered compliant. Default value: 30 days.

CEN bandwidth plans

Rule nameRule description
Check endpoint expiration of CEN bandwidth plansIf the expiration date of the Cloud Enterprise Network (CEN) bandwidth plan is more than the time range specified by the parameter from the current time, the bandwidth plan is considered compliant. Default value: 30 days.

PolarDB-X

Rule nameRule description
Check endpoint expiration of PolarDB-X 1.0 instancesIf the expiration date of the PolarDB-X 1.0 instance is more than the specified number of days from the current time, the instance is considered compliant. Default value: 30 days. This rule only applies to subscription resources; pay-as-you-go instances are considered not applicable.
Check endpoint expiration of PolarDB-X 2.0 instancesIf the expiration date of the PolarDB-X 2.0 instance is more than the specified number of days from the current time, the instance is considered compliant. Default value: 30 days. This rule only applies to subscription resources; pay-as-you-go instances are considered not applicable.