Open nason opened 3 years ago
One more thing I noticed, as of serverless 2.38, the config provider.role has now become provider.iam.role.
So in lib/stackops/lambdaRole.js
line 18:
if (_.has(this._serverless.service.provider, 'role')) {
needs to become
if (_.has(this._serverless.service.provider, 'iam.role')) {
@nason this is great! Could you update this PR and release a new version of this plugin for framework 2?
any update on this?
It feels like this package is deprecated since Serverless v3 is already announced :/
I've been running into issues with this plugin as I upgrade the serverless and nodejs versions for my projects.
When I tried to use the latest serverless (2.25.2) and Node LTS 14.15.0, I started getting errors like:
I started down the path of getting through that, and think I fixed it in https://github.com/serverless-heaven/serverless-aws-alias/commit/0872d2ea2bf2f78e66c7faaea50d0ef24a50e6ca, but then went further and migrated to support serverless 2.0.
The tests pass, and I'm going to give my fork a spin -- not sure if I went too far with this PR, I'd be happy to remove the 2.0 commit ⚠️