agiledigital / agiledigital/serverless-sns-sqs-lambda

Function names with dashes aren't supported

Đang mở
#814 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
85
Fork
20
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When using it on a function with dashes in its name, I'm getting a Cloudformation error on deploy:
```
Error:
The CloudFormation template is invalid: Template format error: Resource name Calculate-session-metricsEventSourceMappingSQSCalculateSessionMetricsQueue is non alphanumeric.
```

The function configuration is:
```
calculate-session-metrics:
timeout: 900
maximumEventAge: 1800
handler: ...
events:
- snsSqs:
name: CalculateSessionMetrics
topicArn: ${self:custom.eventsTopicArn}
omitPhysicalId: true
maxRetryCount: 3
deadLetterQueueEnabled: true
visibilityTimeout: 1800
filterPolicy:
name:
- ....
```

I think https://github.com/agiledigital/serverless-sns-sqs-lambda/pull/813 fixes it, but figured it's best to open an issue too

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.