aws.rrset

Filters

Actions

delete

Action to delete resource records from Route 53 hosted zones.

It is recommended to use a filter to avoid unwanted deletion of R53 records from all hosted zones.

example:

policies:
  - name: route53-remove-filtered-records
    resource: aws.rrset
    filters:
      - type: value
        key: AliasTarget.DNSName
        value: "email.gc.example.com."
    actions:
      - type: delete
properties:
  type:
    enum:
    - delete
required:
- type

Permissions - route53:ChangeResourceRecordSets