Fn::GetAtt Arn 在 AWS::Scheduler::Schedule 上无效

0

【以下的问题经过翻译处理】 我无法在 CloudFormation 模板中使用 Fn::GetAtt 获取 AWS::Scheduler::Schedule 的 ARN。 CloudFormation 在更新堆栈时会出现此错误。

根据AWS::Scheduler::Schedule的资源和策略参考,Arn 已定义为 Fn::GetAtt。

在我的 CFT 中,我定义了 AWS::Scheduler::Schedule 资源并成功部署。

资源: ScheduleGroup: 类型:AWS::Scheduler::ScheduleGroup DjangoBackendClearDjangoSessionsSchedule: 类型:AWS::Scheduler::Schedule 属性: GroupName:!Ref调度组 # …

如果我为计划的 ARN 添加输出,则 CloudFormation 将出现上述消息。 这是模板的唯一更改。

输出: DjangoBackendClearDjangoSessionsScheduleArn: 值:!GetAtt DjangoBackendClearDjangoSessionsSchedule.Arn

我已确认在同一帐户和同一区域中确实有一个名为 lops-coder-DjangoBackendClearDjangoSessionsSchedul-VZ00I61PNLJ4 的计划。

在 AWS 控制台中安排的截图

profile picture
EXPERT
asked 5 months ago82 views
1 Answer
0

【以下的回答经过翻译处理】 我在我的环境中能够复现这个问题。可能是一个bug,你应该联系AWS支持。

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions