You can also update a AWS Lambda in a few seconds if you use the aws sdk. Or in a few more seconds if you use pulumi or terraform. It's a problem entirely related to how CloudFormation works in detecting changes.
Besides CF, I’ve done it directly in the web console and that still seemed pretty slow (though that would have been a while ago, maybe it has improved).