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

Image Check by Tag

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

approved-ims-by-tag

Identifier

Image Check by Tag

Description

If an ECS does not have a specified image attached, this ECS is non-compliant. The images are specified by tag.

Tag

ecs, ims

Trigger Type

Configuration change

Filter Type

ecs.cloudservers

Rule Parameters

  • specifiedIMSTagKey: Tag key of the specified image. The value must be a string.
  • specifiedIMSTagValue: Tag value of the specified image. If the list is left blank, all values are allowed. The value must be an array with up to 10 elements.

Application Scenarios

An image is a template that contains an OS. It may also contain pre-installed public applications, such as a database, and a user's private applications. You can use public, private, shared, and KooGallery images to create ECSs. Public images are provided by the cloud platform, private images are created by users, and shared images are private images that other users shared with you. For details, see Image Overview.

Using specified images brings the following benefits:

  • Unified environment: Specifying unified images ensures that all servers run the same operating system and software version, reducing problems caused by environment differences.
  • Standardized deployment: Unified configuration and settings simplify the deployment process and improve efficiency.
  • Centralized management: Unified images are easy to update and maintain, reducing management complexity.
  • Security policies: Unified images facilitate consistent security policy and patch management, reducing security risks.
  • Compliance: Unified images help ensure that all servers comply with industry regulations and enterprise policies.
  • Reduced operations expenses: Unified images reduce the complexity and costs of operations and management.

Solution

Use one of the specified images to create ECSs. For details, see Creating an ECS from an Image.

Rule Logic

  • If the image of an ECS is one of the images specified by their tags, the ECS is compliant.
  • If the image of an ECS is not one of the images specified by their tags, the ECS is non-compliant.