Skip to main content

A Sceptre hook to enable and disable stack termination protection

Project description

Overview

The purpose of this hook is to enable and disable stack termination protection.

A common use case is execute this hook with your CI/CD system. In that case you may need to execute this on every change. That's where the sceptre-date-resolver may help. It will allow you to force AWS cloudformation to execute the template on on every commit.

Available Hooks

StackTermination

Enables and disables cloudformation stack termination.

Syntax:

parameter|sceptre_user_data:
    <name>: !stack_termination_protection <setting>

Valid setting:

  • enabled
  • disabled

Example:

Enable stack termination protection after creating stack and disable stack termination protection before stack deletion:

hooks:
  after_create:
    - !stack_termination_protection 'enabled'
  before_delete:
    - !stack_termination_protection 'disabled'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page