I used a following way in nodejs to deploy a lambda function before.
await aws.command( `cloudformation package \\ --template-file ${templat