Hello,
We are trying to upgrade from serverless v2
to v3
, in v2
we used erverless-pseudo-parameters
plugin to resolve AWS vars, while I read that in v3
these are supported out of the box but they are throwing the same error.
resorted to using join and sub but its not able to resolver the vars, here’s a snippet which is throwing TypeError
, this resource has been created out of this stack, so trying to set this event stream as a trigger for lambda. It feels like we are overlooking something small here, appreciate on any pointers on this
events:
- stream:
arn: !Join [ "-" ,[ !Sub "arn:aws:kinesis:${AWS::Region}:${AWS::AccountId}:stream/portal" , "${self:provider.stage}" ] ]
batchSize: 1
maximumRetryAttempts: 10
startingPosition: LATEST
Error:
Environment: linux, node 14.21.3, framework 3.28.1 (local), plugin 6.2.3, SDK 4.3.2
Credentials: Local, environment variables
Docs: docs.serverless.com
Error:
TypeError: EventSourceArn.split is not a function
at /runner/_work/catalog-service/catalog-service/node_modules/serverless/lib/plugins/aws/package/compile/events/stream.js:170:68
at Array.forEach (<anonymous>)
at /runner/_work/catalog-service/catalog-service/node_modules/serverless/lib/plugins/aws/package/compile/events/stream.js:147:28
at Array.forEach (<anonymous>)
at AwsCompileStreamEvents.compileStreamEvents (/runner/_work/catalog-service/catalog-service/node_modules/serverless/lib/plugins/aws/package/compile/events/stream.js:97:47)
at PluginManager.runHooks (/runner/_work/catalog-service/catalog-service/node_modules/serverless/lib/classes/plugin-manager.js:530:15)
at async PluginManager.invoke (/runner/_work/catalog-service/catalog-service/node_modules/serverless/lib/classes/plugin-manager.js:564:9)
at async PluginManager.spawn (/runner/_work/catalog-service/catalog-service/node_modules/serverless/lib/classes/plugin-manager.js:585:5)
at async before:deploy:deploy (/runner/_work/catalog-service/catalog-service/node_modules/serverless/lib/plugins/deploy.js:40:11)
at async PluginManager.runHooks (/runner/_work/catalog-service/catalog-service/node_modules/serverless/lib/classes/plugin-manager.js:530:9)
at async PluginManager.invoke (/runner/_work/catalog-service/catalog-service/node_modules/serverless/lib/classes/plugin-manager.js:563:9)
at async PluginManager.run (/runner/_work/catalog-service/catalog-service/node_modules/serverless/lib/classes/plugin-manager.js:604:7)
at async Serverless.run (/runner/_work/catalog-service/catalog-service/node_modules/serverless/lib/serverless.js:179:5)
at async /runner/_work/catalog-service/catalog-service/node_modules/serverless/scripts/serverless.js:812:9
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues