【发布时间】:2020-01-29 03:14:58
【问题描述】:
当我以这种方式使用 CloudFormation 创建时,为什么 parse_time 函数不起作用?
IoTTopicRule:
Type: AWS::IoT::TopicRule
Properties:
TopicRulePayload:
Actions:
- DynamoDBv2:
...
RuleDisabled: false
Sql: |
SELECT
clientid() as hashKey,
concat('weather_', parse_time("YYYY-MM-dd'T'hh:mm:ss", timestamp())) as rangeKey,
FROM 'topic'
当数据保存在 DynamoDB 上时,rangeKey 会保存为 weather_,例如,我希望它会保存为 weather_2020-05-28T07:05:57。
【问题讨论】:
标签: amazon-web-services amazon-cloudformation aws-iot