All Products
Search
Document Center

Cloud Config:ecs-instance-no-public-ip

Last Updated:Nov 10, 2025

Checks whether no public IPv4 address or elastic IP address (EIP) is associated with each Elastic Compute Service (ECS) instance.

Scenarios

If an ECS instance needs to access the Internet or be accessed over the Internet, we recommend that you deploy the ECS instance in a virtual private cloud (VPC) and use Server Load Balancer (SLB) and NAT Gateway to manage the Internet traffic of the ECS instance.

Risk level

Default risk level: medium.

You can change the risk level as required when you apply this rule.

Compliance evaluation logic

  • If no public IPv4 address or EIP is associated with each ECS instance, the evaluation result is compliant.
  • If a public IPv4 address or an EIP is associated with an ECS instance, the evaluation result is non-compliant. For more information about how to correct the non-compliant configuration, see Non-compliance remediation.

Rule details

ItemDescription
Rule nameecs-instance-no-public-ip
Rule IDecs-instance-no-public-ip
TagECS and Instance
Automatic remediationNot supported
Trigger typeConfiguration change
Supported resource typeECS instance
Input parameterNone

Non-compliance remediation

Create an ECS instance that is not associated with a public IP address. For more information, see Create an instance on the Custom Launch tab.