I am new to serverless framework. I was trying to deploy my code to lambda using serverless.
service:
name: store-consumer
provider:
name: aws
runtime: nodejs8.10
stage: dev
region: ap-XXXXXX-1
functions:
lambda:
handler: index.handler
The content of the serverless.yml file is as given above. But when I hit 'sls deploy' in terminal my code is zipped and uploaded to an s3 bucket. How do I deploy my code to the corresponding lambda using serverless?
I assume I 'll have to give some credentials for the lambda, but how do I do that in the .yml file?! What am I not getting correctly?
store-consumer)-functionName(lambda) and the environment(dev). So it should be something likestore-consumer-lambda-dev(not necessarily in this order, need to double check on that). What exactly do you want to achieve? - Thales Minussi