Suppose that I have many millions of events in an SQS queue and I want to get rid of them quickly, but I cannot just delete the queue and make a new one.
What is the fastest way to delete/drain those events out of the queue?
I'm assuming that you don't care about the values in the messages since you appear to want to drain it rather than process it. You can set the MessageRetentionPeriod to a very low value, and then drain any remaining messages out of the queue. After its drained, set the MessageRetentionPeriod back up to the desired value. You'll lose any messages that are older than the MessageRetentionPeriod.
Using AWS Management Console:
Right-Click on the instance
Instance ...READ MORE
Boto3 is the library to use for ...READ MORE
Try this code hope it will work ...READ MORE
You can import standard AWS SDK to ...READ MORE
When to use S3?
S3 is like many ...READ MORE
You can either use AWS CLI or ...READ MORE
Yes there is an easy way to ...READ MORE
I regenerated the credentials in the IAM ...READ MORE
Take a look at the Amazon S3 ...READ MORE
I suspect you are calling the context.done() function before s3.upload() has ...READ MORE
Already have an account? Sign in.