如何使用云形成模板安排AWS应用程序流

发布于 2025-01-23 21:44:45 字数 564 浏览 2 评论 0原文

我已经使用云形成模板创建了AWS应用程序流,我想使用触发配置安排应用程序流。 我们如何使用Cloud Formation传递日期ScheduleStarttime?

错误我得到了

aws :: appflow :: Flow Create Flow请求失败: [时间表开始时间不能在过去。请更新时间表 将来开始一个值的时间。

我在云形成中使用的片段,

"TriggerConfig": {
          "TriggerType": "Scheduled",
          "TriggerProperties": {
            "DataPullMode": "Incremental",
            "ScheduleExpression": "rate(5minutes)",
            "TimeZone": "America/New_York",
            "ScheduleStartTime" : 4.05
          }
        }

I have created AWS App flow using cloud formation template and I want to schedule an app flow using Trigger Config.
How can we pass date ScheduleStartTime using cloud formation?

Error I'm getting

AWS::AppFlow::FlowCreate Flow request failed:
[Schedule start time cannot be in the past. Please update the schedule
start time to a value in future.

The snippet I'm using in cloud formation,

"TriggerConfig": {
          "TriggerType": "Scheduled",
          "TriggerProperties": {
            "DataPullMode": "Incremental",
            "ScheduleExpression": "rate(5minutes)",
            "TimeZone": "America/New_York",
            "ScheduleStartTime" : 4.05
          }
        }

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

好菇凉咱不稀罕他 2025-01-30 21:44:45
TriggerConfig:
         TriggerType: Scheduled
         TriggerProperties:
              DataPullMode: Incremental
              ScheduleExpression: rate(1days)
              ScheduleStartTime: 1652970600
      

在开始时间使用Unix Timestamp。
请参阅以下链接以进行转换。
https://www.epochconverter.com/

TriggerConfig:
         TriggerType: Scheduled
         TriggerProperties:
              DataPullMode: Incremental
              ScheduleExpression: rate(1days)
              ScheduleStartTime: 1652970600
      

Use Unix timestamp for start time.
Please refer to the below link for conversion.
https://www.epochconverter.com/

迟月 2025-01-30 21:44:45

尝试Schedule Interval参数而不是ScheduleeXpression

try ScheduleInterval parameter instead of ScheduleExpression

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文