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

From PyPI (Recommended)

pip install cfn-cur

From Source

git clone https://github.com/mrlikl/continue-update-rollback.git
cd continue-update-rollback
pip install -e .

Usage

cfn-cur -s <stack-full-arn>

or

cfn-cur --stack_arn <stack-full-arn>

Required Parameters

--stack_arn or -s - The full ARN of the root stack that is stuck in UPDATE_ROLLBACK_FAILED state

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 (via environment variables, AWS profile, or IAM role)
  • Boto3

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.2.tar.gz (7.6 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.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cfn_cur-0.1.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for cfn_cur-0.1.2.tar.gz
Algorithm Hash digest
SHA256 79f9f09274150f38a9dbea465c223c71a5609803161aefd3366f260adbc2b8bb
MD5 9d0ded9c86d5e7961327d56e4da0bd8d
BLAKE2b-256 fee664091cfb71d428e25c2e0cdf28f034d046632d6060c9a33b77f064f00b65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cfn_cur-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for cfn_cur-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 09203e330461faf2cac5d024e09c90c4f2cb05232db91fdba16aed30b9eb7175
MD5 b1f19f0f68d1286a260de53a3538b43e
BLAKE2b-256 b7d4ad2d2d58a007f21986e17324b30b0a927ac32755710b9042698ed96601ae

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