{
  "id": "cloud/aws-lambda-s3-event-trigger-missing",
  "signature": "Error: S3 bucket notification configuration is invalid: Lambda function ARN not found",
  "signature_zh": "错误：S3存储桶通知配置无效：未找到Lambda函数ARN",
  "regex": "Lambda function ARN not found",
  "domain": "cloud",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The Lambda function specified in the S3 event notification does not exist or has been deleted, causing the notification configuration to fail validation.",
  "root_cause_type": "generic",
  "root_cause_zh": "S3事件通知中指定的Lambda函数不存在或已被删除，导致通知配置验证失败。",
  "versions": [
    {
      "version": "AWS Lambda (all runtimes)",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "S3 (all regions)",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Recreate the S3 bucket and re-add notification",
      "why_fails": "The bucket is not the issue; the Lambda function ARN is invalid. Recreating the bucket is unnecessary.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Update the Lambda function with the same name",
      "why_fails": "The function may need a different ARN format (e.g., including alias or version). Simply updating does not fix the ARN mismatch.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the Lambda function exists: `aws lambda get-function --function-name my-function`. If it exists, get its ARN: `aws lambda get-function-configuration --function-name my-function --query FunctionArn`. Then update the S3 notification with the correct ARN: `aws s3api put-bucket-notification-configuration --bucket my-bucket --notification-configuration file://notification.json` where notification.json contains the correct Lambda ARN.",
      "success_rate": 0.95,
      "how": "Verify the Lambda function exists: `aws lambda get-function --function-name my-function`. If it exists, get its ARN: `aws lambda get-function-configuration --function-name my-function --query FunctionArn`. Then update the S3 notification with the correct ARN: `aws s3api put-bucket-notification-configuration --bucket my-bucket --notification-configuration file://notification.json` where notification.json contains the correct Lambda ARN.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If the function was deleted, recreate it with the same name and ARN. Or update the notification to point to a different existing function.",
      "success_rate": 0.9,
      "how": "If the function was deleted, recreate it with the same name and ARN. Or update the notification to point to a different existing function.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify the Lambda function exists: `aws lambda get-function --function-name my-function`. If it exists, get its ARN: `aws lambda get-function-configuration --function-name my-function --query FunctionArn`. Then update the S3 notification with the correct ARN: `aws s3api put-bucket-notification-configuration --bucket my-bucket --notification-configuration file://notification.json` where notification.json contains the correct Lambda ARN.",
    "If the function was deleted, recreate it with the same name and ARN. Or update the notification to point to a different existing function."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-event-types-and-destinations.html",
  "official_doc_section": null,
  "error_code": "InvalidArgument",
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-11-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}