Hi@akhtar,
To create a function, you need a deployment package and an execution role. The deployment package contains the function code. The execution role grants the function permission to use AWS services. The following create-function example creates a Lambda function named my-function.
$ aws lambda create-function \
--function-name my-function \
--runtime nodejs10.x \
--zip-file fileb://my-function.zip \
--handler my-function.handler \
--role arn:aws:iam::123456789012:role/service-role/MyTestFunction-role-tges6bf4