如何使用 AWS CLI 检索特定计划的详细信息?

问题描述 投票:0回答:1

我使用

Name
 列出我的 Amazon EventBridge 计划的 
list-schedules
:

aws scheduler list-schedules | jq '.Schedules[].Name'

它输出:

my-schedule
。为了再次检查,我在 AWS 网页上查看了我的计划名称:

然而,当我尝试使用

get-schedule
时:

aws scheduler get-schedule --name my-schedule

我收到错误:

An error occurred (ResourceNotFoundException) when calling the GetSchedule operation: Schedule my-schedule does not exist.

如何使用 AWS CLI 检索有关特定计划的详细信息?

amazon-web-services aws-cli aws-event-bridge
1个回答
0
投票

如果没有指定group-name参数,则使用“default”作为组名。确保此默认组与您的计划组名称一致。

© www.soinside.com 2019 - 2024. All rights reserved.