Questions tagged [amazon-cloudwatch-events]
65 questions
2
votes
1 answer
Can an aws target be triggered by multiple cloudwatch event rules
I'm trying to set up a scheduler system for our infrastructure that suppose to take care of all scheduled housekeeping tasks. Our proposal is to make it simple and scalable with one docker image. A Script of each task and cloudWatch event rule will…

Kim Luu
- 91
- 5
2
votes
0 answers
Manually trigger CloudWatch Alarm on event
I have a scenario like this:
I have a dead-letter-queue and when a message lands into it, a CloudWatch Alarm should trigger.
I have tried to set up an alarm directly using the metrics provided for SQS and the closest that came was the…

Shankha057
- 1,296
- 1
- 20
- 38
2
votes
1 answer
Cloudwatch Custom Events SQS fails to work
I am using terraform to create the queues while also creating the Cloudwatch event rules and setting one of the queues as the target for the rules.
In summary I have a single queue that is the target for 3 separate cloudwatch events. The problem is…

Jude Fernandes
- 7,437
- 11
- 53
- 90
2
votes
1 answer
How to make cron run only 42 times in 10 minute intervals?
I need to make a job run 42 times in intervals of 10 minutes. I will be doing this using AWS Scheduled Task, which has the following cron syntax: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html
The basic arithmetic…

Daniel Viglione
- 8,014
- 9
- 67
- 101
2
votes
1 answer
How do I make a cloudformation template for a cloudwatch event with a lambda function target?
Instead of using the aws interface I want to write my cloudwatch event and function as a stack. However I am having trouble how to figure out the template of this cloudformation stack. The aws guides show examples but I haven't found anything that…

notaproatbash
- 436
- 4
- 13
1
vote
0 answers
Cloudwatch rule not being triggered as event pattern is deployed in lexicographic order usung terraform
I'm trying to write a config where lambda function is being triggered if there is an instance class change in AWS RDS resource.
This is the custom event pattern:
{
"source": [
"aws.rds"
],
"detail-type": [
"RDS DB Instance Event"
],
…

raghav gade
- 11
- 2
1
vote
0 answers
SQS: Age of newest message
How can we calculate age of latest message in SQS?
Use-case: I want to trigger a notification based on time elapsed(Age) since the latest message landed on SQS queue. Say my threshold cutoff is 1 hour, if first message lands on SQS at 11:00, second…

Himanshu
- 21
- 1
1
vote
1 answer
How to migrate to SQS trigger from Cloudwatch events?
What is the best way to migrate invocation of Lambda function from Cloudwatch event to Event Source Mapping(Triggers) with minimum risk and downtime?
Our application uses cloudwatch event rule to invoke Lambda at fixed rate, which then polls SQS…

clumsycoder
- 11
- 2
1
vote
1 answer
AWS Cloudwatch logs auto scroll
I am collecting logs from AWS Cloudwatch.
I have selected a log stream and a regex expression for which I want to collect logs.
I have to select all the logs for some duration, but the issue is the logs are loaded for one second at a time so have…

Shivangi Gupta
- 194
- 1
- 10
1
vote
0 answers
Cloudwatch Filter Against OpenSearch Logs
I followed the instructions from documentation, but could not find it useful in my scenario.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html#extract-log-event-values
I am able to filter json values as well as…

Izain
- 11
- 3
1
vote
1 answer
Setting Cloudwatch Event Cron Job
I'm a little bit confused on the cron job documentation for cloudwatch events. My goal is to create a cron job that run every day at 9am, 5pm, and 11pm EST. Does this look correct or did I do it wrong? It seems like cloudwatch uses UTC military time…

Andy
- 185
- 2
- 6
- 22
1
vote
1 answer
How to create SNS Subscription filter policy
I'm trying to create SNS Subscription filter policy. I want this filter policy to send the message to user only when cloudformation Resource status is "CREATE_IN_PROGRESS" for s3 bucket and all the other cloudformation resource creation events…

Abhishek Hc
- 93
- 2
- 9
1
vote
1 answer
Configure CloudWatch Secret Manger event to trigger another lambda function
I have set up AWS Secret Manager which contains my Redshift credentials. I have enabled secret rotation on my secret. I have used the sample Code given by AWS to set up a lambda function that gets the credentials and have subscribed SNS topic to the…

Bilal Yousaf
- 414
- 6
- 19
1
vote
2 answers
Pass date or cron schedule from cloud watch events to step function input
Is there a way I can pass a date or a cron schedule as an input to my state function - which is getting called by a cloud watch event? The cloud watch event runs on a cron schedule and I would like to pass that dynamically on a daily basis to the…

srinidhi sridharan
- 31
- 1
- 2
1
vote
2 answers
lambda handler for multiple triggers in aws lambda
How will the Lambda handler of multiple different types of trigger look like in java?
I want to set a trigger for Cloudwatch Event Rule, S3. How can I do this?
public class App implements RequestHandler
{
public Context…

nats
- 187
- 2
- 13