Use Terraform to create lambda function and serverless to deploy code

I handle the definition of my AWS Lambdas in terraform, but handle the code updates in our CI/CD pipeline without using terraform. If you want to still define your Lambdas in your current fashion, you can reference your current Lambda function as a data source which you can then reference from other terraform resources.