All Products
Search
Document Center

Cloud Config:ecs-internet-charge-type-check

Last Updated:Nov 10, 2025

Checks whether a static public IP address is assigned to each Elastic Compute Service (ECS) instance and the metering method for the public bandwidth is pay-by-bandwidth. If a static public IP address is assigned to each ECS instance and the metering method for the public bandwidth is pay-by-bandwidth, the configuration is considered compliant.

Scenarios

You can select an appropriate metering method for the public bandwidth of each ECS instance. This helps you reduce costs.

Risk level

Default risk level: medium.

When you apply this rule, you can change the risk level based on your business requirements.

Compliance evaluation logic

  • If a static public IP address is assigned to each ECS instance and the metering method for the public bandwidth is pay-by-bandwidth, the configuration is considered compliant.
  • If no static public IP address is assigned to an ECS instance, the configuration is considered incompliant. If a static public IP address is assigned to an ECS instance but the metering method for the public bandwidth is pay-by-traffic, the configuration is also considered incompliant. For more information about how to remediate an incompliant configuration, see Incompliance remediation.

Rule details

ItemDescription
Rule nameecs-internet-charge-type-check
Rule identifierecs-internet-charge-type-check
TagECS and Instance
Automatic remediationNot supported
Trigger typeConfiguration change
Supported resource typeECS instance
Input parameterNone.

Incompliance remediation

Change the metering method for the public bandwidth of an ECS instance to pay-by-bandwidth. For more information, see Change the billing method for network usage of an ECS instance that uses a static public IP address.