aws.app-elb-target-group

Resource manager for v2 ELB target groups.

Filters

default-vpc

Filter all application elb target groups within the default vpc

example

policies:
  - name: appelb-targetgroups-default-vpc
    resource: app-elb-target-group
    filters:
      - default-vpc
properties:
  type:
    enum:
    - default-vpc
required:
- type

Actions

delete

Action to delete ELB target group

It is recommended to apply a filter to the delete policy to avoid unwanted deletion of any app elb target groups.

example

policies:
  - name: appelb-targetgroups-delete-unused
    resource: app-elb-target-group
    filters:
      - "tag:SomeTag": absent
    actions:
      - delete
properties:
  type:
    enum:
    - delete
required:
- type