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

Mar*_*ins 5 amazon-web-services aws-cloudformation aws-glue

我的任务是创建一个生成粘合作业的云信息模板,然后将该粘合作业设置为第一步功能任务。

我让这两部分分别工作,但我似乎无法获得 Glue 作业 ARN,即使创建了一个:

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

如果它被创建,根据这个备忘单,它不可用于 cloudformation GetAtt ..

我错过了什么吗?有办法做到这一点吗?

Mar*_*cin 9

AWS::Glue::Job 不返回其 ARN

但是,您可以自己构建它,因为 Glue 作业 ARN 具有已知格式!Ref <glue-job-resource>返回作业名称。

例如,要返回 Arn in Outputs,您可以执行以下操作:

Outputs:
  JobArn:
    Value: !Sub "arn:${AWS::Partition}:glue:${AWS::Region}:${AWS::AccountId}:job/${<glue-job-resource>}"
Run Code Online (Sandbox Code Playgroud)