在 Amazon Glue 中查看蓝图 - Amazon Glue
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

在 Amazon Glue 中查看蓝图

查看蓝图,了解蓝图描述、状态和参数规范,并下载蓝图 ZIP 格式归档。

您可以使用 Amazon Glue 控制台、Amazon Glue API 或 Amazon Command Line Interface(Amazon CLI)来查看蓝图。

查看蓝图(控制台)
  1. 打开 Amazon Glue 控制台,地址:https://console.aws.amazon.com/glue/

  2. 在导航窗格中,选择 blueprints(蓝图)

  3. blueprints(蓝图)页面上,选择一个蓝图。然后,在 Actions (操作) 菜单上,选择 View (查看)

查看蓝图(Amazon CLI)
  • 输入以下命令,仅查看蓝图名称、描述和状态。将 <blueprint-name> 替换为要查看的蓝图的名称。

    aws glue get-blueprint --name <blueprint-name>

    命令输出类似如下。

    {
        "Blueprint": {
            "Name": "myDemoBP",
            "CreatedOn": 1587414516.92,
            "LastModifiedOn": 1587428838.671,
            "BlueprintLocation": "s3://awsexamplebucket1/demo/DemoBlueprintProject.zip",
            "Status": "ACTIVE"
        }
    }
    

    输入以下命令,同时查看参数规范。

    aws glue get-blueprint --name <blueprint-name> --include-parameter-spec

    命令输出类似如下。

    {
        "Blueprint": {
            "Name": "myDemoBP",
            "CreatedOn": 1587414516.92,
            "LastModifiedOn": 1587428838.671,
            "ParameterSpec": "{\"WorkflowName\":{\"type\":\"String\",\"collection\":false,\"description\":null,\"defaultValue\":null,\"allowedValues\":null},\"PassRole\":{\"type\":\"String\",\"collection\":false,\"description\":null,\"defaultValue\":null,\"allowedValues\":null},\"DynamoDBTableName\":{\"type\":\"String\",\"collection\":false,\"description\":null,\"defaultValue\":null,\"allowedValues\":null},\"ScriptLocation\":{\"type\":\"String\",\"collection\":false,\"description\":null,\"defaultValue\":null,\"allowedValues\":null}}",
            "BlueprintLocation": "s3://awsexamplebucket1/demo/DemoBlueprintProject.zip",
            "Status": "ACTIVE"
        }
    }
    

    添加 --include-blueprint 参数以便在输出中包含 URL,您可以将其粘贴到浏览器,以下载 Amazon Glue 存储的蓝图 ZIP 格式归档。