Skip to main content

No project description provided

Project description

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-workloadWorkload Registration Guide - Collect workload metadata, discover resources using tags, select AWS resources for monitoring, and create support cases
  • awsidr create-alarmsCloudWatch Alarms Guide - Create new CloudWatch alarms with CLI-generated recommendations based on your selected AWS resources
  • awsidr ingest-alarmsAlarm Ingestion Guide - Onboard existing CloudWatch alarms or APM alerts using tags, ARNs, or file uploads; includes validation and support case management
  • awsidr setup-apmAPM Integration Guide - Deploy infrastructure for third-party APM tools (Datadog, New Relic, 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.

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

awsidr-1.0.4.tar.gz (224.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

awsidr-1.0.4-py3-none-any.whl (280.8 kB view details)

Uploaded Python 3

File details

Details for the file awsidr-1.0.4.tar.gz.

File metadata

  • Download URL: awsidr-1.0.4.tar.gz
  • Upload date:
  • Size: 224.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for awsidr-1.0.4.tar.gz
Algorithm Hash digest
SHA256 0f84b44bd986371f15a38b90651c734daa01366a0eb92c4508b7936e13841d4c
MD5 934f5c6060f696fe471f70e339392640
BLAKE2b-256 6cd2aaa7d2885cede3d6e96def19c9e72d628a98f85b162e539c2a77bc5897c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for awsidr-1.0.4.tar.gz:

Publisher: pypi_upload.yml on awslabs/CLI-for-AWS-Incident-Detection-and-Response

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file awsidr-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: awsidr-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 280.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for awsidr-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f0c01f4e6ae1fc89ee6e6ea9ccca3d49c61e0f4de9ff0e62f2cd344f6acbee27
MD5 6ce9e721c87dc5d4757ac795e2574e55
BLAKE2b-256 d33804673c6bb411e2d51fbb3d0bf83b7e4578b29ff50c2497b3329c4b7c5702

See more details on using hashes here.

Provenance

The following attestation bundles were made for awsidr-1.0.4-py3-none-any.whl:

Publisher: pypi_upload.yml on awslabs/CLI-for-AWS-Incident-Detection-and-Response

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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