Updated on 2025-08-25 GMT+08:00

ECS Instances Are in the Specified VPC

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

ecs-instance-in-vpc

Identifier

ECS Instances Are in the Specified VPC

Description

If an ECS is not in the specified VPC, this ECS is non-compliant.

Tag

ecs, vpc

Trigger Type

Configuration change

Filter Type

ecs.cloudservers

Rule Parameters

vpcId: VPC ID of an ECS

Application Scenarios

A VPC is a private network on the cloud. You can create VPCs to logically isolate your resources. When creating a VPC, you can configure security groups, VPN, IP address segments, and bandwidth. This facilitates internal network management and configuring, allowing you to change network configurations in a secure, convenient manner. Additionally, you can control ECS access within and across security groups to enhance security.

For more information about VPC, see What Is Virtual Private Cloud?

Solution

You cannot change the VPC of an ECS. Exercise cause when selecting a VPC.

Rule Logic

  • If an ECS is not in the specified VPC, this ECS is non-compliant.
  • If an ECS is in the specified VPC, this ECS is compliant.