Lambda not being triggered despite seemingly proper EventBridge rule setup?

I have an EventBridge rule that captures all resource modifications from Cloudtrail:

{
  "source": ["aws.*"],
  "detail-type": ["AWS API Call via CloudTrail"],
  "detail": {
    "eventSource": ["*.amazonaws.com"],
    "eventName": ["Create*", "Delete*", "Update*", "Put*", "Attach*", "Detach*", "Modify*", "Set*"]
  }
}

Its target is a lambda that was tested with a cloudtrail event, and it works (sends the response to Teams channel webhook).

This is the CF YAML of the rule, so you can have a clearer insight into it:

AWSTemplateFormatVersion: '2010-09-09'
Description: CloudFormation template for EventBridge rule 'infrastructure-drift'
Resources:
  EventRule0:
    Type: AWS::Events::Rule
    Properties:
      EventBusName: default
      EventPattern:
        source:
          - aws.*
        detail-type:
          - AWS API Call via CloudTrail
        detail:
          eventSource:
            - '*.amazonaws.com'
          eventName:
            - Create*
            - Delete*
            - Update*
            - Put*
            - Attach*
            - Detach*
            - Modify*
            - Set*
      Name: infrastructure-drift
      State: ENABLED
      Targets:
        - Id: xxx
          Arn: arn:aws:lambda:eu-west-1:xxx:function:InfrastructureDrift

I made some manual changes to some resources on my account, which are supposed to trigger the Lambda, but they never did. I can get the lambda to work when I test it with any event from Cloudtrail personally, meaning its formatted well and it does its job. I feel like the issue is with the rule, but I don’t see how, as this looks right to me. I should note that the lambda has right Resource-based policy. Any help appreciated, thank you. Just in case, this is the lambda:

import json
import http.client

def format_json(json_data):
    """ Helper function to format JSON data into a pretty-printed string """
    return json.dumps(json_data, indent=4)

def lambda_handler(event, context):
    try:
        # Extract basic information about the event
        user_identity = event.get('userIdentity', {}).get('arn', 'Unknown user')
        event_name = event.get('eventName', 'Unknown event')
        event_time = event.get('eventTime', 'Unknown time')

        # Detailed description of the change from requestParameters and responseElements
        request_details = format_json(event.get('requestParameters', {}))
        response_details = format_json(event.get('responseElements', {}))

        # Construct the message to be sent to Teams
        message = (f"**Event Time:**n{event_time}nn"
                   f"**User:**n{user_identity}nn"
                   f"**Action:**n{event_name}nn"
                   f"**Request Details:**n```n{request_details}n```nn"
                   f"**Response Details:**n```n{response_details}n```")

        # Teams webhook URL
        webhook_url = 'xxx'

        conn = http.client.HTTPSConnection("xxx.webhook.office.com")
        headers = {'Content-type': 'application/json'}
        payload = json.dumps({
            "title": "AWS Resource Change Alert",
            "text": message
        })

        conn.request("POST", webhook_url, payload, headers)
        response = conn.getresponse()
        data = response.read()
        return data.decode("utf-8")
    except Exception as e:
        # Handle generic exceptions and print error details
        print(f"Error processing event: {str(e)}")
        return str(e)

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật