템플릿 데이터 보기 - AWS Proton

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

템플릿 데이터 보기

AWS Proton콘솔 및 AWS CLI을 사용하여 세부 정보가 포함된 템플릿 목록을 보고 세부 데이터가 포함된 개별 템플릿을 볼 수 있습니다.

고객 관리형 환경 템플릿 데이터에는 CUSTOMER_MANAGED 값이 있는 provisioned 파라미터가 포함됩니다.

서비스 템플릿에 서비스 파이프라인이 포함되지 않은 경우 서비스 템플릿 데이터에는 pipelineProvisioning 파라미터가 CUSTOMER_MANAGED 값과 함께 포함됩니다.

자세한 내용은 템플릿 등록 및 게시 단원을 참조하세요.

콘솔 또는 AWS CLI를 사용하여 템플릿 데이터를 나열하고 볼 수 있습니다.

AWS Management Console
콘솔을 사용하여 템플릿을 나열하고 볼 수 있습니다.
  1. 템플릿 목록을 보려면 (환경 또는 서비스) 템플릿을 선택합니다.

  2. 세부 데이터를 보려면 템플릿 이름을 선택합니다.

    템플릿의 세부 데이터, 템플릿의 메이저 및 마이너 버전 목록, 템플릿 버전 및 템플릿 태그를 사용하여 배포된 AWS Proton 리소스 목록을 볼 수 있습니다.

    권장 메이저 버전과 마이너 버전은 권장으로 표시되어 있습니다.

AWS CLI

AWS CLI을 사용하여 템플릿을 나열하고 볼 수 있습니다.

다음 명령을 실행합니다.

$ aws proton get-environment-template-version \ --template-name "simple-env" \ --major-version "1" \ --minor-version "0"

응답:

{ "environmentTemplateVersion": { "arn": "arn:aws:proton:region-id:123456789012:environment-template/simple-env:1.0", "createdAt": "2020-11-10T18:35:08.293000+00:00", "description": "Version 1", "lastModifiedAt": "2020-11-10T18:35:11.162000+00:00", "majorVersion": "1", "minorVersion": "0", "recommendedMinorVersion": "0", "schema": "schema:\n format:\n openapi: \"3.0.0\"\n environment_input_type: \"MyEnvironmentInputType\"\n types:\n MyEnvironmentInputType:\n type: object\n description: \"Input properties for my environment\"\n properties:\n my_sample_input:\n type: string\n description: \"This is a sample input\"\n default: \"hello world\"\n my_other_sample_input:\n type: string\n description: \"Another sample input\"\n required:\n - my_other_sample_input\n", "status": "DRAFT", "statusMessage": "", "templateName": "simple-env" } }

다음 명령을 실행합니다.

$ aws proton list-environment-templates

응답:

{ "templates": [ { "arn": "arn:aws:proton:region-id:123456789012:environment-template/simple-env-3", "createdAt": "2020-11-10T18:35:05.763000+00:00", "description": "VPC with Public Access", "displayName": "VPC", "lastModifiedAt": "2020-11-10T18:35:05.763000+00:00", "name": "simple-env-3", "recommendedVersion": "1.0" }, { "arn": "arn:aws:proton:region-id:123456789012:environment-template/simple-env-1", "createdAt": "2020-11-10T00:14:06.881000+00:00", "description": "Some SSM Parameters", "displayName": "simple-env-1", "lastModifiedAt": "2020-11-10T00:14:06.881000+00:00", "name": "simple-env-1", "recommendedVersion": "1.0" } ] }

서비스 템플릿의 마이너 버전을 봅니다.

다음 명령을 실행합니다.

$ aws proton get-service-template-version \ --template-name "fargate-service" \ --major-version "1" \ --minor-version "0"

응답:

{ "serviceTemplateMinorVersion": { "arn": "arn:aws:proton:us-east-1:123456789012:service-template/fargate-service:1.0", "compatibleEnvironmentTemplates": [ { "majorVersion": "1", "templateName": "simple-env" } ], "createdAt": "2020-11-11T23:02:57.912000+00:00", "description": "Version 1", "lastModifiedAt": "2020-11-11T23:02:57.912000+00:00", "majorVersion": "1", "minorVersion": "0", "schema": "schema:\n format:\n openapi: \"3.0.0\"\n pipeline_input_type: \"MyPipelineInputType\"\n service_input_type: \"MyServiceInstanceInputType\"\n\n types:\n MyPipelineInputType:\n type: object\n description: \"Pipeline input properties\"\n required:\n - my_sample_pipeline_required_input\n properties:\n my_sample_pipeline_optional_input:\n type: string\n description: \"This is a sample input\"\n default: \"hello world\"\n my_sample_pipeline_required_input:\n type: string\n description: \"Another sample input\"\n\n MyServiceInstanceInputType:\n type: object\n description: \"Service instance input properties\"\n required:\n - my_sample_service_instance_required_input\n properties:\n my_sample_service_instance_optional_input:\n type: string\n description: \"This is a sample input\"\n default: \"hello world\"\n my_sample_service_instance_required_input:\n type: string\n description: \"Another sample input\"", "status": "DRAFT", "statusMessage": "", "templateName": "fargate-service" } }

다음 예제 명령 및 응답에 표시된 것처럼 서비스 파이프라인이 없는 서비스 템플릿을 봅니다.

다음 명령을 실행합니다.

$ aws proton get-service-template \ --name "simple-svc-template-cli"

응답:

{ "serviceTemplate": { "arn": "arn:aws:proton:region-id:123456789012:service-template/simple-svc-template-cli", "createdAt": "2021-02-18T15:38:57.949000+00:00", "displayName": "simple-svc-template-cli", "lastModifiedAt": "2021-02-18T15:38:57.949000+00:00", "status": "DRAFT", "name": "simple-svc-template-cli", "pipelineProvisioning": "CUSTOMER_MANAGED" } }