I can't use Waiters in Lambda

Viewed 17

I made a simple program through golang and deploy using Serverless Framework.

And I got to using Waiters.

The example in the link above is DynamoDB, but I used it for RDS.

err := svc.WaitUntilDBInstanceDeleted(&rds.DescribeDBInstancesInput{
    DBInstanceIdentifier: aws.String(InstanceName),
})

But when I look at the log through cloudwatch, Waiters not executed.

The functions before and after the Waiters are executed immediately and an error occurs.

Can't I use Waiters in Lambda?

0 Answers
Related