provider:
name: aws
runtime: python2.7
region: us-west-2
iamRoleStatements:
- Effect: Allow
Action:
- kinesis:GetRecords
- kinesis:GetShardIterator
- kinesis:PutRecord
- kinesis:PutRecords
- kinesis:DescribeStream
- kinesis:ListStreams
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
Resource: arn:aws:kinesis:::stream/test
resources:
Resources:
productNotificationStream:
Type: "AWS::Kinesis::Stream"
Properties:
Name: notification
ShardCount: 1
functions:
skuNotification:
handler: functions/sku_notification.execute
events:
- stream:
arn:
Fn::GetAtt:
- “productNotificationStream”
- "Arn"
batchSize: 100
startingPosition: TRIM_HORIZON
enabled: true
Serverless: Packaging service…
Type Error ---------------------------------------------
EventSourceArn.split is not a function
For debugging logs, run again after setting SLS_DEBUG env var.
Stack Trace --------------------------------------------
TypeError: EventSourceArn.split is not a function
at functionObj.events.forEach.event (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/lib/plugins/aws/deploy/compile/events/stream/index.js:60:47)
at Array.forEach (native)
at serverless.service.getAllFunctions.forEach (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/lib/plugins/aws/deploy/compile/events/stream/index.js:20:28)
at Array.forEach (native)
at AwsCompileStreamEvents.compileStreamEvents (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/lib/plugins/aws/deploy/compile/events/stream/index.js:16:47)
at BbPromise.reduce (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/lib/classes/PluginManager.js:160:50)
at tryCatcher (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/node_modules/bluebird/js/release/reduce.js:157:18)
at Object.gotAccum (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/node_modules/bluebird/js/release/reduce.js:144:25)
at Object.tryCatcher (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/node_modules/bluebird/js/release/promise.js:691:18)
at Async._drainQueue (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/home/travis/.nvm/versions/node/v6.1.0/lib/node_modules/serverless/node_modules/bluebird/js/release/async.js:148:10)