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.3.tar.gz (5.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.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cfn_cur-0.1.3.tar.gz
  • Upload date:
  • Size: 5.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.3.tar.gz
Algorithm Hash digest
SHA256 b7acab52149c6b885e235852a2252ee2967ab9ff1f9276deedcb0225f950bb3e
MD5 39b41c419b2a096517d6174bfae7b0b3
BLAKE2b-256 eb07ba92c62e8bd6914c027f59e82e929e199ec0efb7469a82406af940075cb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cfn_cur-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e28668a2f4a290855a388620c40ac761af3b061a20b7557d8b77aee8f2b87da7
MD5 ba84ab088c403604b0785888200acee2
BLAKE2b-256 a7c13f9af804115099955011c1adfb1992cbf1533c79a71f0636cda66fb7312a

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