Questions tagged [aws-event-bridge]

For questions about Amazon EventBridge. Amazon EventBridge is a serverless event bus service, formerly called Amazon CloudWatch Events. when using this tag include the more generic [amazon-web-services] tag where possible.

694 questions
0
votes
1 answer

Send log data from ec2 logs to eventbridge

I want to send logs data from my EC2 instance (Ubuntu) to an AWS eventbridge where I can then send them to multiple endpoints. e.g. if someone performs a root user operation on the server this is written to/var/log/auth.log, I would then like this…
0
votes
1 answer

Can SQS trigger an event in AWS event bridge service?

In my usecase I want to trigger an aws-lambda function if sqs payload message contain a specific attribute. For example following is an sqs payload { "attribute1" : "test1", "attribure2" : "test2" } if sqs payload contains attribute named…
-1
votes
0 answers

evenBridge supported by cloudformation?

I am trying to write a cloudformation template to send notification when there is a change in IAM settings. https://aws.amazon.com/blogs/security/how-to-receive-alerts-when-your-iam-configuration-changes/ Is there a template for this already…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
-1
votes
1 answer

"Error: module 'pyodbc' has no attribute 'connect'\""

I wanted to integrate S3 and event bridge trigger for lambda function to stored the particular logs from cloud watch to SQL Server management database so for that I'm using Pyodbc library. File name: lambda_function.py import json import os import…
-1
votes
1 answer

DataWarehousing design patterns for event-driven semi-structured data

We want to be able to analyze ticket events and trigger internal webhooks in realtime from Zendesk. Zendesk provides an AWS EventBridge connector which we were thinking of leveraging for this use-case. For the analytical use-case, I was thinking of…
-1
votes
1 answer

AWS Eventbridge: Creation of a rule using an event pattern uisng Terraform

I am trying to create a resource using terraform. My resource now is: resource "aws_cloudwatch_event_rule" "vm-rule-ec2" { name = "${var.env_prefix}-vm-rule-ec2-state" description = "EC2 instance changing state" event_pattern = <
-1
votes
2 answers

problem Automating Script through Lambda & EventBridge Rules

I have a notebook on Sagemaker notebook instance that runs some logic and updated files on S3 accordingly. I would like to automate that notebook to run at scheduled times. I copied the script to S3 and created a lambda that runs the notebook saved…
-1
votes
1 answer

How can I run my scheduled lambda only in one region though it is multi region

I wanted to deploy my AWS architecture in multiple regions. But how can I make sure application in one region runs. its is scheduled lambda by Event Bridge Cron expression. How can I make one region active(this will run regularly) another region…
-1
votes
1 answer

Terraform authorisation error creating AWS EventBridge connection to API Destinations

How to fix this? Error: creating EventBridge connection (xxxxx): ValidationException: Failed to create the connection(s). Failed to create the secret because the user is not authorized to perform the operation on secret…
-1
votes
1 answer

Boto3 Client 'Scheduler'

can anyone help me on this? I want to create a AWS EventBridge Scheduler using Boto3 but I'm encountering this error botocore.exceptions.UnknownServiceError: Unknown service: 'scheduler' what am I missing? import boto3 client =…
RJB
  • 1
  • 2
-1
votes
1 answer

AWS Cron job for Lambda

I have written a Lambda to fetch some prices on Nifty Index(share market) which runs every 5 mins and uploads data to S3. For this i have written a cron using AWS EventBridge schedule given below 15/5 9-15 ? * MON-FRI * now the problem is this runs…
-1
votes
1 answer

What determines exactly when scheduled lambda invocation triggered by cloudwatch event happens?

I have two lambda functions that are scheduled to run once every hour via an event. One of them is invoked every hour at five minutes before the hour and the other goes at two minutes after. What determines this? Is it just the time the lambda was…
charmingduchess
  • 137
  • 1
  • 1
  • 8
-1
votes
1 answer

How to trigger EventBridge with an HTTP request?

How do I create a rule that captures an HTTP GET that has some data and schedules the running of a lambda function at a specific time? I can write the lambda function but I am having trouble with creating an API endpoint to which I can send a…
-1
votes
1 answer

How to Trigger an aws lambda every 5th and 5+1th minute

I am new to aws and trying to figure out a problem. I have to create a lambda which should get triggered every 5th and (5+1)th minute. I m using event bridge and have create two rules. First one works fine but second rule doesn't. Please find some…
-1
votes
2 answers

How to extract rolename, policy from cloudtrail event for IAM CreateRole event using boto3

Trying to create an EventBridge rule to get event 'CreateRole' from source 'aws.iam'. The events coming from cloudtrail is having an array 'resources' with 3 elements, rolename, arn, account_id. And they have a pattern like: "Resources": [ …
1 2 3
46
47