agiledigital / agiledigital/serverless-sns-sqs-lambda

Function names with dashes aren't supported

未关闭
#814 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
85
派生
20
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。