I tried using the ToolkitCleaner construct in our staging environment which is shared by 5 or so developers for the past 2+ years.
Obviously, that account has accumulated lots of junk in terms of S3 artifacts and ECR images in the Bootstrap stack.
I use the construct in the following way:
new ToolkitCleaner(this, 'ToolkitCleaner', {
// Use the dryRun prop to only output the number of assets and total size that would be deleted but without actually deleting assets.
dryRun: true,
// Do not delete assets created in the last 30 days even if unused
retainAssetsNewerThan: Duration.days(30),
});
After invoking the State Machine manually, I get the following error:
RequestId: af66aa63-3b46-4385-ac8c-1077d3b9d14c Error: Task timed out after 300.00 seconds
