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

MIT

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.0.tar.gz (5.1 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.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cfn_cur-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 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.0.tar.gz
Algorithm Hash digest
SHA256 682938d5e22bbdf545c1ec399feb4d00d184bbd7871a1c2f070c0efb0472e8bc
MD5 b141f2696808d7ee78f2edbd38e4558a
BLAKE2b-256 284c70e9d3e1c39bed5501cf382130340ab11f76e7879f5014a65f5db794d0dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cfn_cur-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccb4278a1f44740e6ea565e1efb28187fdb024b5a19fd8e2bdfad6edddeacc1b
MD5 3b7f49055427cb3af69a6d2e23390a47
BLAKE2b-256 768e78458adb2b3e23a975e8d009ba513514a479c8eaa6282c32887fddf00bec

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