Skip to main content

A tool to generate CLI Command to continue update rollback of CloudFormation stacks

Project description

cfn-cur

A tool to generate AWS CLI command to continue-update-rollback a stack that is stuck in UPDATE_ROLLBACK_FAILED state. The resources to skip are essentially identified using a set of DescribeStackResources, DescribeStacks and DescribeStackEvents API Calls.

Works for stacks with nested stacks. Always pass the root stack ARN and the root stack must be in UPDATE_ROLLBACK_FAILED state. If your root stack is in a different state [ i.e, the nested stack was updated directly ], the stack is ideally in a stuck situation and would need AWS intervention to recover.

Features

  • Automatically identifies resources that need to be skipped during continue-update-rollback
  • Works with nested stacks
  • Generates ready-to-use AWS CLI commands
  • Handles complex stack hierarchies

Installation

pip install cfn-cur

Usage

cfn-cur <root-stack-arn>

How It Works

The tool analyzes the CloudFormation stack events to identify resources that failed during the update process. It then generates an AWS CLI command with the appropriate --resources-to-skip parameter to help you successfully roll back your stack.

Requirements

  • Python 3.9 or higher
  • AWS credentials configured in your CLI

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

cfn_cur-0.1.4.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cfn_cur-0.1.4-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file cfn_cur-0.1.4.tar.gz.

File metadata

  • Download URL: cfn_cur-0.1.4.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.10

File hashes

Hashes for cfn_cur-0.1.4.tar.gz
Algorithm Hash digest
SHA256 393700b53e1f9026ecd8be0e53e42c5a9a1f39a1c3d07e6626ae1704355afcff
MD5 e241d32be9f7e6468d47a6f8d1e60d4c
BLAKE2b-256 7e73c3cffae35e632921cf2a47739568dfc160225ebc2897d231c6d8a4bdf730

See more details on using hashes here.

File details

Details for the file cfn_cur-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: cfn_cur-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.10

File hashes

Hashes for cfn_cur-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6ffac84623050bb41cd17fa3cfc9971334ff71758c25739b358da7ed3c0bc3fd
MD5 4d398b3caef16968c5967c9a124c682d
BLAKE2b-256 89dd4899a3df78391a58ea2fce7b71f801e0fc62c8386509b3bf238b4b12b03e

See more details on using hashes here.

Supported by

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