-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
Description
serverless-offline-sns/src/index.ts
Line 161 in 5a29200
| return result; |
Error message:
TypeError: Cannot read property 'runtime' of undefined
If I create an SNS Subscription, without SQS or SNS function, I can't get the function name.
In CreateHandler I can't get the runtime property:
serverless-offline-sns/src/index.ts
Line 378 in 5a29200
| if (!fn.runtime || fn.runtime.startsWith("nodejs")) { |
the fn is undefined.
My Subscription
mySubscription:
Type: 'AWS::SNS::Subscription'
Properties:
TopicArn: !Ref myTopic
Endpoint: !GetAtt
- myConsumer
- Arn
Protocol: sqs
RawMessageDelivery: 'true'
My Topic
myTopic:
Type: "AWS::SNS::Topic"
Properties:
TopicName: my-topic
My Queues
consumerRelease:
Type: "AWS::SQS::Queue"
Properties:
QueueName: my-queue
RedrivePolicy:
deadLetterTargetArn: !GetAtt myQueueDlq.Arn
maxReceiveCount: 3
myQueueDlq:
Type: "AWS::SQS::Queue"
Properties:
QueueName: my-queue-dlq
livtavareslivtavares