Lihat data layanan - AWS Proton

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

Lihat data layanan

Anda dapat melihat dan daftar data detail layanan menggunakanAWS Proton konsol atauAWS CLI.

AWS Management Console

Daftar dan lihat detail layanan menggunakan AWS Protonkonsol seperti yang ditunjukkan pada langkah-langkah berikut.

  1. Untuk melihat daftar layanan Anda, pilih Layanan di panel navigasi.

  2. Untuk melihat data detail, pilih nama layanan.

    Lihat data detail layanan.

AWS CLI

Lihat rincian layanan dengan pipeline layanan seperti yang ditunjukkan dalam contoh perintah CLI berikut dan respon.

Perintah:

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

Jawaban:

{ "service": { "arn": "arn:aws:proton:region-id:123456789012:service/simple-svc", "branchName": "mainline", "createdAt": "2020-11-28T22:40:50.512000+00:00", "lastModifiedAt": "2020-11-28T22:44:51.207000+00:00", "name": "simple-svc", "pipeline": { "arn": "arn:aws:proton:region-id:123456789012:service/simple-svc/pipeline/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111", "createdAt": "2020-11-28T22:40:50.512000+00:00", "deploymentStatus": "SUCCEEDED", "lastDeploymentAttemptedAt": "2020-11-28T22:40:50.512000+00:00", "lastDeploymentSucceededAt": "2020-11-28T22:40:50.512000+00:00", "spec": "proton: ServiceSpec\npipeline:\n my_sample_pipeline_required_input: hello\n my_sample_pipeline_optional_input: bye\ninstances:\n- name: instance-svc-simple\n environment: my-simple-env\n spec:\n my_sample_service_instance_required_input: hi\n my_sample_service_instance_optional_input: ho\n", "templateMajorVersion": "1", "templateMinorVersion": "1", "templateName": "svc-simple" }, "repositoryConnectionArn": "arn:aws:codestar-connections:region-id:123456789012:connection/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222", "repositoryId": "myorg/myapp", "spec": "proton: ServiceSpec\npipeline:\n my_sample_pipeline_required_input: hello\n my_sample_pipeline_optional_input: bye\ninstances:\n- name: instance-svc-simple\n environment: my-simple-env\n spec:\n my_sample_service_instance_required_input: hi\n my_sample_service_instance_optional_input: ho\n", "status": "ACTIVE", "templateName": "svc-simple" } }

Lihat rincian layanan tanpa pipeline layanan seperti yang ditunjukkan dalam contoh perintah CLI berikut dan respon.

Perintah:

$ aws proton get-service \ --name "simple-svc-no-pipeline"

Jawaban:

{ "service": { "arn": "arn:aws:proton:region-id:123456789012:service/simple-svc-without-pipeline", "createdAt": "2020-11-28T22:40:50.512000+00:00", "lastModifiedAt": "2020-11-28T22:44:51.207000+00:00", "name": "simple-svc-without-pipeline", "spec": "proton: ServiceSpec\ninstances:\n- name: instance-svc-simple\n environment: my-simple-env\n spec:\n my_sample_service_instance_required_input: hi\n my_sample_service_instance_optional_input: ho\n", "status": "ACTIVE", "templateName": "svc-simple-no-pipeline" } }