aws.launch-config

Filters

age

Filter ASG launch configuration by age (in days)

example

policies:
  - name: asg-launch-config-old
    resource: launch-config
    filters:
      - type: age
        days: 90
        op: ge
properties:
  days:
    type: number
  op:
    enum:
    - eq
    - equal
    - ne
    - not-equal
    - gt
    - greater-than
    - ge
    - gte
    - le
    - lte
    - lt
    - less-than
    - glob
    - regex
    - regex-case
    - in
    - ni
    - not-in
    - contains
    - difference
    - intersect
  type:
    enum:
    - age
required:
- type

unused

Filters all launch configurations that are not in use but exist

example

policies:
  - name: asg-unused-launch-config
    resource: launch-config
    filters:
      - unused
properties:
  type:
    enum:
    - unused
required:
- type

Actions

delete

Filters all unused launch configurations

example

policies:
  - name: asg-unused-launch-config-delete
    resource: launch-config
    filters:
      - unused
    actions:
      - delete
properties:
  type:
    enum:
    - delete
required:
- type