Match all specified tags

更新时间:
复制 MD 格式

A resource is considered compliant if it matches all specified tags.

Scenarios

In cloud IT management, cloud resources must have one or more specific tags. These tags are used to manage resources for scenarios such as permission isolation, bill allocation, and automated O&M.

Risk level

Default risk level: High.

When you use this rule, you can change the risk level as needed.

Detection logic

  • A resource is considered compliant if it matches all specified tags.
  • A resource is considered non-compliant if it does not match all specified tags. For more information, see Remediation.

Rule details

ParameterDescription
Rule nameMatch all specified tags
Rule identifiercontains-all-tag
TagTag
Automatic remediationNot supported
Rule trigger mechanismConfiguration change
Supported resource types
  • ACK cluster
  • API resource
  • API group
  • accelerated domain name
  • CEN instance
  • DDoS instance
  • ECS dedicated host (DDH)
  • ECS disk
  • ECS instance
  • ECS launch template
  • ECS Elastic Network Interface (ENI)
  • ECS security group
  • ECS snapshot
  • Elastic IP Address
  • HBase cluster
  • KMS master key
  • KMS credential
  • MongoDB instance
  • NAS file system
  • NAT Gateway
  • OSS bucket
  • PolarDB cluster
  • RDS instance
  • Redis instance
  • Server Load Balancer (SLB)
  • VPC route table
  • VPC
  • VPC vSwitch
Input parameters
  • tag1Key (tag key)
  • tag1Value (tag value)
  • tag2Key (tag key)
  • tag2Value (tag value)
  • tag3Key (tag key)
  • tag3Value (tag value)
  • tag4Key (tag key)
  • tag4Value (tag value)
  • tag5Key (tag key)
  • tag5Value (tag value)
  • tag6Key (tag key)
  • tag6Value (tag value)
Note You can define up to six tags. Each tag consists of a tag key and a tag value. Tag inputs are case-sensitive and support the wildcard characters * and ?. Each tag key must be a single value. For the tag value, you can enter multiple values separated by commas (,). A match occurs if the resource's tag value matches any of the entered values.

Remediation

Set tags on the resource to match all specified tags. For more information, see Create and attach custom tags.