-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError : Cannot read property "Properties" of undefined #178
Comments
I have the same error when i am trying to deploy my lambda function (i don't have the error without serverless-aws-alias). Here my serverless.yml file :
Detailed logs :
How did you solve your issue @hstefanov ? |
This may be related to the role at the function level. I have the same problem in a project with two functions. Each function has its own role. No role at the provider level. Without the plugin, it works fine. If you only have one function in the serverless.yml, try setting the role at the provider level. |
Issue still present. @raymercb 's suggestion of setting role at the provider level worked for me |
Has anyone managed to get this working? Getting the same error |
TypeError : Cannot read property "Properties" of undefined in \lib\stackops\lambdaRole.js:38:11 when role attribute is not included as root property in serverless.yml file.
How to reproduce:
Include serverless-aws-alias plugin and leave lambda role ARN in the function explicitly without overriding with global value.
service:
name: api
provider:
name: aws
functions:
api:
handler: handler
name: name
role: arn:aws:iam::account:role/rolename
events:
- http
The text was updated successfully, but these errors were encountered: