檢視環境資料 - AWS Proton

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

檢視環境資料

您可以使用 AWS Proton 主控台或 檢視環境詳細資訊 AWS CLI。

AWS Management Console

您可以使用 AWS Proton 主控台,檢視包含詳細資訊的環境清單,以及包含詳細資訊的個別環境清單。

  1. 若要檢視您的環境清單,請在導覽窗格中選擇環境

  2. 若要檢視詳細資訊,請選擇環境的名稱。

    檢視您的環境詳細資訊。

AWS CLI

使用 AWS CLI 取得列出環境詳細資訊。

執行以下命令:

$ aws proton get-environment \ --name "MySimpleEnv"

回應:

{ "environment": { "arn": "arn:aws:proton:region-id:123456789012:environment/MySimpleEnv", "createdAt": "2020-11-11T23:03:05.405000+00:00", "deploymentStatus": "SUCCEEDED", "lastDeploymentAttemptedAt": "2020-11-11T23:03:05.405000+00:00", "lastDeploymentSucceededAt": "2020-11-11T23:03:05.405000+00:00", "name": "MySimpleEnv", "protonServiceRoleArn": "arn:aws:iam::123456789012:role/ProtonServiceRole", "spec": "proton: EnvironmentSpec\nspec:\n my_sample_input: \"the first\"\n my_other_sample_input: \"the second\"\n", "templateMajorVersion": "1", "templateMinorVersion": "0", "templateName": "simple-env" } }