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
8
votes
1 answer

Typescript syntax for a lambda that is triggered from different events

Using the serverless framework I have defined a lambda that can be either triggered every hour or via SNS ... functions: { fooAction: { handler: 'handler.fooAction', events: [ { schedule: 'rate(1 hour)', …
8
votes
2 answers

AWS EventBridge Target Java Lambda function

I am using a Java lambda function to put a custom event to the AWS EventBridge. The target of this eventbridge is another Java lambda function. How to receive the Event in the target lambda function? I mean what is the input type in the…
8
votes
3 answers

How to subscribe to AWS Event Bus events in a client application

How to subscribe to AWS Event Bus events from client side applications ex: NodeJS app, Angular client or a Mobile client app ? In December 2020, an email from AWS Marketing has presented the advantages to use the Event-Driven architecture .…
MFAL
  • 1,090
  • 13
  • 19
8
votes
2 answers

How to connect AWS Eventbridge to an SNS topic

I want an SNS topic to trigger an Eventbridge event, so that I can invoke an ECS task. I have tried to connect an Eventbridge rule to an SNS topic as follows (this is my event pattern for the eventbridge rule): { "source": [ "aws.sns" ], …
Andreas Forslöw
  • 2,220
  • 23
  • 32
8
votes
2 answers

Passing event data from Amazon EventBridge into an AWS Fargate task

Objective I'd like to pass event data from Amazon EventBridge directly into an AWS Fargate task. However, it doesn't seem like this is currently possible. Workaround As a work-around, I've inserted an extra resource in between AWS Fargate and…
user189198
8
votes
0 answers

How to extract event relayed from AWS EventBridge to ECS Fargate

I articulate the question as follows: Is the EventBridge event relayed to the ECS Task? (I can't see how much useful it could be if the event is not relayed). If the event is relayed, then how to able to extract it from within say a Node app…
7
votes
1 answer

Scheduled EventBridge rule targeting API Destination

Is it possible to create an EventBrisge rule which can be scheduled to run at a certain time of day and call an API as a custom target? It seems as though a schedule can be setup for targets if they are AWS or Partner services, but not if they are…
Matt W
  • 11,753
  • 25
  • 118
  • 215
7
votes
3 answers

S3 object level events are not getting triggered

I have created an event rule in aws events bridge with event pattern: { "source": [ "aws.s3" ] } Target is a CloudWatch log group. Now when I change something on bucket level e.g. bucket permissions then I see an event captured in cloud…
user10916892
  • 825
  • 12
  • 33
7
votes
1 answer

How to get a metric/alarm on a failed scheduled AWS ECS task (based on exit code)

We have a setup with AWS ECS task scheduled with CloudWatch Events / EventBridge. We'd like to have metrics & notification for failed runs based on container exit code. We were planning to use FailedInvocations from Monitoring Usage with CloudWatch…
7
votes
1 answer

AWS EventBridge putEvents does not accept Detail JSON array

I am using AWS SDK v2.796.0 As per the documentation of putEvents, the Detail value needs to be a valid JSON string. https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_PutEventsRequestEntry.html However, it is not accepting a JSON array…
7
votes
4 answers

Can AWS SQS publish to SNS or is polling SQS required?

We’re presently building an application using AWS and have a need to push msgs into SQS. My question is whether it is possible to have SQS publish a message to an SNS which will trigger a Lambda (susbscribing to the SNS)? The lambda then needs to…
6
votes
2 answers

Error "The execution role you provide must allow AWS EventBridge Scheduler to assume the role."

I'm creating a role to reboot automatically an EC2 instance. But I'm getting this error "The execution role you provide must allow AWS EventBridge Scheduler to assume the role." In the role, I've added those permissions I know it's mostly too much…
MathKimRobin
  • 1,268
  • 3
  • 21
  • 52
6
votes
0 answers

AWS EventBridge - reading event archive

Does anyone know if there's an API for reading events archived using the EventBridge archiving feature? We're aiming to do event replays but the out-of-the-box event replay feature won't work for us as we need to preserve time order of the events.…
booler
  • 83
  • 3
6
votes
1 answer

How to extract properties from my state machine output when using EventBridge Input Transformers

I'm having trouble passing one of the values returned by my AWS state machine as input to a Lambda using the EventBridge service. I created a state machine in AWS Step Functions to model a specific problem in our domain. Once the state machine…
julealgon
  • 7,072
  • 3
  • 32
  • 77
6
votes
1 answer

How to validate incoming JSON using AWS Event Bridge Schema Registry

I am trying to validate an incoming JSON event into AWS Event Bridge. I have followed the docs on how to download the code bindings. Which all works ok. I have also tested the event bridge with the schema discovery and it works fine and puts my data…
mp252
  • 453
  • 1
  • 6
  • 18
1
2
3
46 47