AWS Cloudformation:有没有办法捕获 Glue ARN 以用于步骤函数?

AWS Cloudformation: is there a way to capture Glue ARN for use in a step function?

我的任务是创建一个生成粘合作业的 cloudformation 模板,然后将该粘合作业设置为第一步函数任务。

我让这两个部分分开工作,但我似乎无法获得 Glue 作业 ARN,如果创建了一个的话:

https://theburningmonk.com/cloudformation-ref-and-getatt-cheatsheet/

如果已创建,根据此备忘单,它不可用于 cloudformation GetAtt ..

我错过了什么吗?有什么办法吗?

AWS::Glue::Job 不 return 其 ARN

但是,您可以自己构建它,因为 Glue 作业 ARN 具有 known format!Ref <glue-job-resource> return 的作业名称。

因此,例如 return Arn in Outputs,您可以执行以下操作:

Outputs:
  JobArn:
    Value: !Sub "arn:${AWS::Partition}:glue:${AWS::Region}:${AWS::AccountId}:job/${<glue-job-resource>}"