Skip to main content

Overview

AWS integration enables IncidentFox to access your AWS infrastructure for:
  • CloudWatch Logs and Metrics
  • EC2 instance status and details
  • RDS database monitoring
  • Lambda function analysis
  • ECS/Fargate task status
  • CodePipeline deployment tracking

Prerequisites

  • AWS account with IAM access
  • IAM role or user with appropriate permissions
  • Knowledge of your AWS region(s)

Configuration

Create an IAM role for IncidentFox to assume:
Adjust the Resource ARNs to limit access to specific resources in production.

Step 2: Configure Trust Policy

If using cross-account access:

Step 3: Add to IncidentFox

Via Web UI:
  1. Go to Team Console > Integrations
  2. Click Add Integration > AWS
  3. Enter:
    • Region (primary)
    • Authentication method (Role ARN or Access Keys)
    • Role ARN (if using assume role)
  4. Click Test Connection
  5. Save
Via Configuration:
For multiple regions:

Available Tools

CloudWatch Logs

get_cloudwatch_logs

Fetch logs from CloudWatch Log Groups.
Parameters:
  • log_group - Log group name
  • filter_pattern - CloudWatch filter pattern
  • time_range - Time range to search

query_cloudwatch_insights

Run CloudWatch Logs Insights queries.
Parameters:
  • log_groups - Log groups to query
  • query - Insights query string
  • time_range - Time range
Example Query:

CloudWatch Metrics

get_cloudwatch_metrics

Query CloudWatch metrics.
Parameters:
  • namespace - Metric namespace (e.g., AWS/EC2)
  • metric_name - Metric name
  • dimensions - Dimension filters
  • statistic - Average, Sum, Maximum, etc.
  • period - Data point period in seconds

EC2

describe_ec2_instance

Get EC2 instance details and status.
Parameters:
  • instance_id - EC2 instance ID
Returns:
  • Instance state
  • Instance type
  • Launch time
  • Security groups
  • Network interfaces
  • Tags

RDS

get_rds_instance_status

Check RDS database status and metrics.
Parameters:
  • db_identifier - RDS instance identifier
Returns:
  • Instance status
  • Endpoint
  • Storage allocation
  • Recent events
  • Performance metrics

Lambda

describe_lambda_function

Get Lambda function configuration.
Parameters:
  • function_name - Lambda function name
Returns:
  • Runtime
  • Memory configuration
  • Timeout
  • Environment variables
  • Last modified
  • Recent invocations

ECS

list_ecs_tasks

List ECS tasks in a cluster/service.
Parameters:
  • cluster - ECS cluster name
  • service - Service name (optional)
  • status - RUNNING, STOPPED, etc.

CodePipeline

describe_codepipeline

Get CodePipeline execution status.
Parameters:
  • pipeline_name - Pipeline name
Returns:
  • Pipeline state
  • Stage statuses
  • Recent executions
  • Failed actions (if any)

Use Cases

Investigating Lambda Errors

RDS Performance Issues

Deployment Tracking

Multi-Account Setup

For organizations with multiple AWS accounts:

Troubleshooting

Access Denied

Symptom: “User is not authorized to perform this action” Solutions:
  1. Verify IAM policy attached to role
  2. Check trust relationship allows assume role
  3. Ensure resource ARNs match your resources

No Data Returned

Symptom: Queries return empty results Solutions:
  1. Verify region is correct
  2. Check time range - CloudWatch has retention limits
  3. Confirm log group/metric names are exact

Throttling

Symptom: “Rate exceeded” errors Solutions:
  1. Reduce query frequency
  2. Use broader time periods
  3. Request AWS quota increase

Best Practices

Use CloudWatch Insights for complex log analysis - it’s faster and more powerful than filter patterns.
  1. Use resource tagging - Tag resources to enable filtered queries
  2. Set up log retention - Ensure logs are retained long enough for investigations
  3. Use cross-account roles - Avoid using access keys
  4. Enable Performance Insights - For RDS debugging
  5. Set up CloudWatch alarms - So IncidentFox can reference them

Next Steps

Kubernetes

Connect K8s clusters

Datadog

Set up Datadog