檢視 AWS Glue 中的藍圖 - AWS Glue

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

檢視 AWS Glue 中的藍圖

檢視藍圖可以檢閱藍圖描述、狀態和參數規格,以及下載藍圖 ZIP 封存。

您可以使用 AWS Glue 主控台、AWS Glue API 或 AWS Command Line Interface (AWS CLI) 來檢視藍圖。

檢視藍圖 (主控台)
  1. 開啟位於 https://console.aws.amazon.com/glue/ 的 AWS Glue 主控台。

  2. 在導覽窗格中,選擇 blueprints (藍圖)。

  3. blueprints (藍圖) 頁面上,選取藍圖。然後在 Actions (動作) 選單,選擇 View (檢視)

檢視藍圖 (AWS 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,您可以貼到瀏覽器中,來下載 AWS Glue 儲存的藍圖 ZIP 封存。