tencentcloud.ami

ami Tencent Cloud image

Docs on ami resource https://www.tencentcloud.com/document/product/213/4940

example:

policies:
- name: ami_old_and_not_used
  resource: tencentcloud.ami
  filters:
    - type: unused
      value: true
    - type: value
      key: CreatedTime
      value_type: age
      value: 90
      op: greater-than

Filters

unused

Filters images based on usage

true: image has no instances spawned from it false: image has instances spawned from it

example:

policies:
  - name: ami-unused
    resource: tencentcloud.ami
    filters:
      - type: unused
        value: true
properties:
  type:
    enum:
    - unused
  value:
    type: boolean
required:
- type

Actions