aws.cache-cluster

Actions

delete

Action to delete an elasticache cluster

To prevent unwanted deletion of elasticache clusters, it is recommended to include a filter

example

policies:
  - name: elasticache-delete-stale-clusters
    resource: cache-cluster
    filters:
      - type: value
        value_type: age
        key: CacheClusterCreateTime
        op: ge
        value: 90
    actions:
      - type: delete
        skip-snapshot: false
properties:
  skip-snapshot:
    type: boolean
  type:
    enum:
    - delete
required:
- type

snapshot

Action to snapshot an elasticache cluster

example

policies:
  - name: elasticache-cluster-snapshot
    resource: cache-cluster
    filters:
      - type: value
        key: CacheClusterStatus
        op: not-in
        value: ["deleted","deleting","creating"]
    actions:
      - snapshot
properties:
  type:
    enum:
    - snapshot
required:
- type