aws lambda create-function --function-name CliTestFun
--runtime java8 --region ap-south-1
--role arn:aws:iam::XXXXXXXXXXXX:role/aws-lambda-execution-role
--handler com.example.demo.Search::handleRequest
Parameter validation failed: Missing required parameter in input: "Code"
You are not passing the code/zip to the lambda with --zip-file option.
--zip-file fileb://yourJavaCode.zip
You can create the zip manually or using build tools like maven/gradle. Here is the link to learn more about packaging your java code for the lambda
Creating a ZIP Deployment Package for a Java Function
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With