endpoint created: POST - https://3iehv17hj6.execute-api.ap-south-1.amazonaws.com/dev/inference
functions: cifar: serverless-cifar-dev-cifar
ARN: arn:aws:lambda:ap-south-1:258326714772:function:serverless-cifar-dev-cifar
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt install nodejs
sudo npm i -g serverless
My ECR Repository [URI:](258326714772.dkr.ecr.ap-south-1.amazonaws.com/cifar10_serverless)
serverless deploy
CREATE_FAILED: IamRoleLambdaExecution (AWS::IAM::Role)
API: iam:CreateRole User: arn:aws:sts::258326714772:assumed-role/TestSession5EC2S3Access/i-0a6509e740e929efd is not authorized to perform: iam:CreateRole on resource: arn:aws:iam::258326714772:role/serverless-cifar-dev-ap-south-1-lambdaRole because no identity-based policy allows the iam:CreateRole action
Added IAMFullAccess to the EC2 IAM role.
CREATE_FAILED: CifarLambdaFunction (AWS::Lambda::Function)
Resource handler returned message: "'MemorySize' value failed to satisfy constraint: Member must have value less than or equal to 3008 (Service: Lambda, Status Code: 400, Request ID: f23c4c31-8577-41ed-b402-c11a355cf8c1)" (RequestToken: 45626d5b-a0af-54bb-22e5-89a1b08f1142, HandlerErrorCode: InvalidRequest)
Frontend code repository: https://github.com/MittalNeha/emlo-serverless
Deployment URL: https://emlo-serverless.vercel.app/
- Check the memory of your instance
grep MemTotal /proc/meminfo
- curl command to test serverless deployement curl