Skip to main content

AWS Incident Detection and Response (IDR) CLI

Overview

The AWS Incident Detection and Response Customer CLI (referred to as the "IDR CLI" or "CLI" in this package) is a command-line-interface tool that streamlines how you onboard to AWS Incident Detection and Response ("IDR"). You can read more about IDR onboarding in the User Guide: https://docs.aws.amazon.com/IDR/latest/userguide/getting-started-idr.html

The CLI runs in AWS CloudShell or local terminal to collect onboarding information, gather AWS resource data via the Resource Groups Tagging API, and manage Support cases. It creates new CloudWatch alarms or ingests existing ones, and deploys infrastructure via CloudFormation to enable third-party tools to send alerts to AWS for IDR ingestion.

If you’re familiar with the CLI but have questions, jump to the FAQs . This section describes what you can accomplish with the CLI. You can use the CLI both in an interactive mode in which the CLI guides you through the steps, or you can use the CLI in “unattended mode” to automate your work.

Quick Start

Prerequisites: AWS credentials configured (not needed in CloudShell) and required IAM permissions - see Getting Started and IAM Policies

# Install IDR CLI
pip install awsidr

# 1. Workload Metadata Collection (Execute this first)
awsidr register-workload

# 2. CloudWatch Alarm Creation (Execute this if your workload information is already collected)
awsidr create-alarms

# 3. Alarm Ingestion (Onboard existing CloudWatch alarms and apm alarms)
awsidr ingest-alarms

# 4. 3rd party APM Integration setup (Set up integration between 3rd party APM providers and AWS account)
awsidr setup-apm

# Available flags
-v, --verbose  Enable verbose output
--debug        Enable debug mode
--help         Show help message and exit.
-r, --resume   Resume with a specific session number
--config       Use config file (unattended mode)

Choosing Which Command to Execute

Task Guide
First time setup Workflow 1
Ingest existing alarms Workflow 2
APM integration Workflow 3
Automate with config files Unattended Mode
Troubleshooting FAQ

Detailed Command Execution Guides

These guides contain the step-by-step walkthrough for each command. You can reference them for explanation of each step during command execution:

  • awsidr register-workload → Workload Registration Guide - Collect workload metadata, discover resources using tags, select AWS resources for monitoring, and create support cases
  • awsidr create-alarms → CloudWatch Alarms Guide - Create new CloudWatch alarms with CLI-generated recommendations based on your selected AWS resources
  • awsidr ingest-alarms → Alarm Ingestion Guide - Onboard existing CloudWatch alarms or APM alerts using tags, ARNs, or file uploads; includes validation and support case management
  • awsidr setup-apm → APM Integration Guide - Deploy infrastructure for third-party APM tools (Datadog, New Relic, PagerDuty, etc.)

Examples Input for Unattended Mode

If you chooses to execute in Unattended Mode, a configuration file input is needed, you can reference the following examples for configuration file format

AWS IDR Resources

Questions, Special Requests, and Feedback

Upon the completion of awsidr register-workload, awsidr create-alarms, or awsidr ingest-alarms , a support case will be created by the CLI on your behalf. If you have any questions about IDR, special requests (such as applicable compliance and regulatory requirements), and feedback for the IDR CLI, please feel free to reply to the support case created. The support case can be found in AWS Support → Your support case, and will have the subject line:

AWS Incident Detection and Response - {workload_name}

Contributing

Contributions are welcome! However, changes must go through our internal repository before being merged on GitHub, so external pull requests will not be merged directly.

For security related issues, please reference SECURITY. For non-security related requests, please open issues to report bugs or suggest features. When filing an issue, check existing open or recently closed issues to ensure it hasn't already been reported. Include as much information as possible, such as:

  • A reproducible test case or series of steps
  • The version of our code being used
  • Any modifications you've made relevant to the bug
  • Anything unusual about your environment or deployment

Security

See SECURITY for more information.

License

This library is licensed under the Apache-2.0 License. See the LICENSE.md file.

Metadata

Release files for awsidr 1.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for awsidr 1.0.10
File Size Uploaded Provenance Actions
awsidr-1.0.10.tar.gz 254.4 kB With provenance Details for awsidr-1.0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for awsidr 1.0.10
File Interpreter ABI Platform Actions
awsidr-1.0.10-py3-none-any.whl Python 3 none any Details for awsidr-1.0.10-py3-none-any.whl

Total release size: 575.8 kB

Release files / awsidr-1.0.10.tar.gz

Download URL awsidr-1.0.10.tar.gz
Size 254.4 kB
Tags Source
SHA-256 checksum
How to use checksums
16e0eeec3120ea4c17a3096752ec635453f0b3069d93212da795088ce0945941
BLAKE2b-256 checksum
How to use checksums
0338d795511e0546e31dbf04d5c67730e3d8bccc27e01b5b76d786cb8b79b060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / awsidr-1.0.10-py3-none-any.whl

Download URL awsidr-1.0.10-py3-none-any.whl
Size 321.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7c5ec53374f66362240c04aacd3e079c7c67e27451ca31094b20fd1cdab3550
BLAKE2b-256 checksum
How to use checksums
48373e83f3d21d6466b71850b68cd96e90f2d6e7f3ca452e0f172da23f97e90c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for awsidr 1.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for awsidr-1.0.10.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page