{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/3"}],"enrichment":{"capability":"Simplifies writing CloudFormation custom resources by handling responses, exception trapping, timeouts, and structured logging for AWS Lambda functions.","skillfed_tags":["cloudformation","aws-lambda","infrastructure-as-code"],"use_cases":["Create custom CloudFormation resources that provision third-party APIs or non-AWS services without writing response boilerplate.","Implement long-running provisioning tasks that exceed Lambda's 15-minute timeout using the polling decorator pattern.","Ensure CloudFormation stacks fail gracefully with meaningful error messages when custom resource handlers encounter exceptions.","Trace CloudFormation events through Lambda logs using structured JSON output with stack and request IDs.","Deploy infrastructure-as-code patterns that require custom logic beyond CloudFormation's native resource types."],"what_it_does":"crhelper is a decorator-based library that wraps CloudFormation custom resource handlers to eliminate boilerplate and ensure robust error handling. It guarantees CloudFormation receives a response even when exceptions occur, catches Lambda timeouts, and provides structured JSON logging with request and stack IDs for tracing. The library supports long-running operations via polling, which re-invokes the Lambda function every 2 minutes until completion, bypassing the 15-minute Lambda timeout limit.\n\nYou use it by decorating handler functions for create, update, and delete lifecycle events, then calling the helper instance in your main handler. It manages response formatting, error propagation to CloudFormation stack events, and optional CloudWatch Events scheduling for polling workflows. Static typing is supported for mypy compatibility.","worth_installing":"Yes, if you are writing CloudFormation custom resources in Lambda. The library eliminates error-handling boilerplate and ensures CloudFormation receives responses reliably. However, note that maintenance is dormant (654 days since last release); verify compatibility with your Python version and current boto3/CloudFormation APIs before adopting in new projects, and monitor for any security updates."},"id":"crhelper","links":{"html":"https://skillfed.io/packages/crhelper","md":"https://skillfed.io/packages/crhelper.md","pypi":"https://pypi.org/project/crhelper/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-10-29","license_spdx":null,"license_treatment":"permissive","name":"crhelper","python_support":"unspecified","summary":"crhelper simplifies authoring CloudFormation Custom Resources"},"popularity":{"monthly_downloads":482836,"position":6420,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.12"}
