Hi I am getting below error while deploying my code (sls deploy)
An error occurred: ServerLambdaFunction - AccessDeniedExceptionnull (Service: AWSLambdaInternal; Status Code: 403; Error Code: AccessDeniedException; Request ID: c1cc9b63-6314-40a8-8103-5151810f38ba; Proxy: null).
Below is my serverless.yml, Please help, I have been stuck on it for hours.
service: coupon-serverless-demo
functions:
server:
handler: server.run
events:
- http: ANY /
- http: 'ANY {proxy+}'
provider:
name: aws
runtime: nodejs12.x
memorySize: 512 # set the maximum memory of the Lambdas in Megabytes
timeout: 10 # the timeout is 10 seconds (default is 6 seconds)
#stage: ${opt:stage, 'local'} # setting the env stage to dev, this will be visible in the routes
#you can overwrite defaults here
#Possible values are dev, stg, prd
stage: ${opt:stage, 'dev'}
region: ap-south-1
#Define function environment variables here
environment:
STAGE: ${self:provider.stage}
plugins:
- serverless-offline