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
3
votes
2 answers

Hitting max character length for AWS Eventbridge json payload

I have a big json payload of around 12K characters. AWS Eventbridge is not letting me create event as there is a payload limit of 8192 characters. How would I resolve this? Thanks
3
votes
1 answer

How to configure the aws event bridge to send events to URL as internally or private(VPC)

I have deployed my application A and B on AWS ECS and used an application load balancer to make HTTPS protocol. I have created an AWS event bridge event. Here my scenario application A sends an event with data to rule and I configured the target as…
3
votes
1 answer

Cross account AWS event bridge

I'm trying to set up cross account event bridge from Account A to Account B to trigger codepipeline which is in ACCOUNT B. ACCOUNT A - I have set up S3 ,AWS EVENT BUS to send the event when the object is added to s3 to ACCOUNT B. ACCOUNT B - I have…
3
votes
1 answer

AWS CDK - trying to add Input Transformer using class aws_cdk.aws_events.RuleTargetInputProperties

As the title mentions, I'm trying to replicate a Input Transformer using RuleTargetInputProperties but i can't seem to find any examples or get the correct format to input. The template i'm trying to replicate is the following: …
hhh0505
  • 33
  • 2
3
votes
1 answer

How can I run an AWS ECS Task and then run a Lambda function after its ready then finally stop the Task?

I am new to AWS. I have a Lambda function which I want to run daily at 4:00 AM GMT. The Lambda function is dependent on an AWS ECS Container task to be running. Instead of running the AWS ECS Container task to run always (because it costs a lot for…
3
votes
1 answer

Tag based policies for EventBridge PutEvents

Is it possible to configure tag-based policies for the EventBridge PutEvents action? My hope was that, based on tags in an IAM role, I could control which roles have access to PutEvents on specific event buses. I have attempted to do this with the…
Jon Nichols
  • 2,211
  • 1
  • 20
  • 21
3
votes
1 answer

Why isn't my Event Bridge rule executing my Lambda function?

I am trying to create an Event Bridge rule that will run my Lambda function every 30 mins. I based my code on this answer I found here on SO Use terraform to set up a lambda function triggered by a scheduled event source Here is my terraform…
Red Cricket
  • 9,762
  • 21
  • 81
  • 166
3
votes
1 answer

Detect errors in cloudwatch logs using eventbridge

I am looking for the best way to detect errors in cloudwatch logs which are logged by lambda functions, the log output is structured. I was considering using a metric filter to trigger a lambda but I think eventbridge is now the preferred way to do…
3
votes
5 answers

How to trigger a Lambda on S3 file upload

I can't seem to get my lambda to trigger as I would expect. In AWS EventBridge, I created a rule with the following custom event pattern: { "source": ["aws.s3"], "detail-type": ["AWS API Call via CloudTrail"], "detail": { "eventSource":…
3
votes
2 answers

How to use multiple prefixes in anything-but clause in AWS eventbridge eventpattern?

I have a situation where I need to filter out certain events using eventpatterns in eventbridge. I want to run the rule for all events except those where username starts with abc or xyz. I have tried below 2 syntax but none worked : "userIdentity":…
3
votes
1 answer

How to use AWS CDK to set EventBridge Rule Target for Lambda with Alias

In my Lambda CDK stack, I want to setup an event rule to send an event to my Lambda every 10 minutes. aws-events Rule aws-events RuleProps aws-events-targets LambdaFunction This works and deploys the rule with the lambda as the target // ...…
3
votes
1 answer

AWS EventBridge as Lambda destination

I have two Lambda functions, an EventProducer and an EventConsumer. The desired scenario is the following: The EventProducer adds an event in a custom AWS EventBridge bus and the EventConsumer reads the event. I want to achieve this using the Lambda…
orestis
  • 932
  • 2
  • 9
  • 23
3
votes
1 answer

Pass parameters to AWS Cloudwatch event target lambda function

I want to pass parameters to my lambda function invoked by AWS Cloudwatch events. The parameter name is alarmActions and my CFT template for the event rule is as follows: "LambdaInvokeScheduler": { "Type": "AWS::Events::Rule", …
3
votes
2 answers

Attach Policy to EventBus using CDK and send cross-account events to Eventbus

What I am trying to do is send an event from a different AWS account to my account which contains the eventbus. For that I am trying to attach a role/policy to EventBus but I am not able to. I tried to use grantPutEvents but no luck there too. How…
2
votes
2 answers

AWS API Gateway to EventBridge pass request.headers

I have been using AWS_PROXY integration from API Gateway to trigger AWS Lambda functions many times and in the event I always receive 'headers' along with 'body' and many other parameters. Now I try to use the Integration Subtype…