CloudFormation itslef supports custom resources backed by lambda or ec2.
However, i could not find something similar on AWS CDK. The only way it seems you can define custom resources is now by specifying resources, actions and paramters.
Does it mean that with a current CDK I might be able to choose whether to call a lambda function or a specific "CLI" command ? Can anyone explain the fundamental logic behind custom resources in AWS CDK?
P.S. I perfectly know how to operate custom resources on CloudFormation.