aws.cloudformation resources

aws.cfn

Actions

delete

Action to delete cloudformation stacks

It is recommended to use a filter to avoid unwanted deletion of stacks

example

policies:
  - name: cloudformation-delete-failed-stacks
    resource: cfn
    filters:
      - StackStatus: ROLLBACK_COMPLETE
    actions:
      - delete
properties:
  type:
    enum:
    - delete
required:
- type

set-protection

Action to disable termination protection

It is recommended to use a filter to avoid unwanted deletion of stacks

example

policies:
  - name: cloudformation-disable-protection
    resource: cfn
    filters:
      - StackStatus: CREATE_COMPLETE
    actions:
      - type: set-protection
        state: False
properties:
  state:
    default: false
    type: boolean
  type:
    enum:
    - set-protection
required:
- type