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

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.1.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.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cfn_cur-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 623781fed3848da7142eee6d4efc2ae73984a9ce12aa479b8897000c657f09d6
MD5 411e59e6f07c87b63270a9958797aca3
BLAKE2b-256 38e7e6b276576abfb4dfe51bba2722a7ab2fb69185201ac267ce8f15d9d03f98

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cfn_cur-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f4f6aa4c46e4700fb1de2c9d1637e327d2a930f9f1a0b09e526a6d6f4ae23245
MD5 cc9e9115b61fa7531e9a400990615981
BLAKE2b-256 e9b47ca440df5105b3d6b586863e9cfb3f033657b9af9b95e5e3ba03d1b48afa

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