Open victormachado-ada-tech opened 3 months ago
So by further investigation, I suspect there is a problem on the pagination script.
On this file, they set a default Limit of 25, which explains why I was getting only 25 leases on the logs.
And here is the function that is called to list the leases.
But the problem is not the Limit itself, but the pagination algorithm which is not working. I would be glad if someone could fix this.
Meanwhile, if someone come across the same problem, I could workaround it by setting and environment variable LIMIT=100 on the fan_out_update_lease_status lambda. But it might not work for lots of leases because DynamoDB has a limit of 1MB read per query.
Version information DCE: v0.34.1 OS: aws/codebuild/amazonlinux2-x86_64-standard:4.0 Go: 1.18 Terraform: 0.12.31
Describe the bug I followed the setup of Sandbox Accounts for Events. For some reason the fan_out_update_lease_status lambda only triggers for 25 leased accounts. In practice, most of our leased accounts are not being automatically deactivated after the expiration date or budget limit.
To Reproduce
Expected behavior The account should be deactivated after spending more than the provided budget.
Additional context Example logs (at this time there were actually 80 active leases):