amazon-web-services - 无服务器框架 - 尝试填充非字符串值错误
问题描述
我有serverless.yaml
许多 SNS 主题,我需要从跨账户和区域的名称构建 ARN,因此我带有自定义前缀
custom:
snsTopicPrefix:
Fn::Join:
- ":"
- - "arn:aws:sns"
- !Ref "AWS::Region"
- !Ref "AWS::AccountId"
topic01: Topic-01-test
functions:
from-SNS:
handler: src/fromSNS/handler.fromSNS
events:
- sns:
arn: ${self:custom.snsTopicPrefix}:${self:custom.topic01}
topicName: ${self:custom.topic01}
但是,当我部署它时,我无法传递错误Trying to populate non string value into a string for variable ${self:custom.snsTopicPrefix}. Please make sure the value of the property is a string.
解决方案
推荐阅读
- javascript - HTML中的Javascript:如何自动将用户输入插入字符串中间?
- sql - 当一组中可以有多个最大值时如何找到所有组中的最大值
- android - 具有平铺纹理和蒙版的自定义视图
- c++ - C++ 生命游戏无限循环函数
- reactjs - Docusign integration with Sharepoint Framework without signatures being uploaded on docusign's server
- android - 我在同一个屏幕上有一个 EditText 和 RecyclerView,如果用户点击 TagPeople 图标,回收器应该来自底部
- java - How to make my if statements run again as if-else statement runs?
- python - 如何使用网络摄像头捕获图像并使用 python 提取图像信息?
- javascript - 调整大小时 Chart.js 模糊
- javascript - Express.js/while-else 循环重定向问题