awscli 1.42.7__py3-none-any.whl → 1.44.26__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- awscli/__init__.py +1 -1
- awscli/alias.py +3 -3
- awscli/argprocess.py +7 -2
- awscli/arguments.py +1 -1
- awscli/bcdoc/docevents.py +3 -0
- awscli/clidocs.py +19 -2
- awscli/clidriver.py +55 -9
- awscli/customizations/argrename.py +1 -3
- awscli/customizations/cliinputjson.py +4 -0
- awscli/customizations/cloudformation/deploy.py +19 -3
- awscli/customizations/cloudtrail/validation.py +22 -2
- awscli/customizations/commands.py +2 -1
- awscli/customizations/eks/update_kubeconfig.py +12 -1
- awscli/customizations/emr/argumentschema.py +355 -344
- awscli/customizations/emr/createcluster.py +12 -0
- awscli/customizations/emr/emrutils.py +83 -50
- awscli/customizations/emr/helptext.py +10 -0
- awscli/customizations/emr/steputils.py +92 -52
- awscli/customizations/gamelift/uploadbuild.py +24 -11
- awscli/customizations/globalargs.py +169 -0
- awscli/customizations/paginate.py +66 -1
- awscli/customizations/s3/filegenerator.py +4 -1
- awscli/customizations/s3/fileinfo.py +4 -1
- awscli/customizations/s3/fileinfobuilder.py +6 -0
- awscli/customizations/s3/s3handler.py +9 -0
- awscli/customizations/s3/subcommands.py +147 -6
- awscli/customizations/s3/syncstrategy/base.py +9 -0
- awscli/customizations/s3/syncstrategy/caseconflict.py +96 -0
- awscli/customizations/s3/utils.py +14 -0
- awscli/customizations/scalarparse.py +48 -9
- awscli/data/cli.json +5 -0
- awscli/examples/apigateway/update-vpc-link.rst +47 -0
- awscli/examples/application-signals/batch-get-service-level-objective-budget-report.rst +99 -0
- awscli/examples/application-signals/create-service-level-objective.rst +88 -0
- awscli/examples/application-signals/delete-service-level-objective.rst +10 -0
- awscli/examples/application-signals/get-service-level-objective.rst +53 -0
- awscli/examples/application-signals/get-service.rst +72 -0
- awscli/examples/application-signals/list-service-dependencies.rst +96 -0
- awscli/examples/application-signals/list-service-dependents.rst +36 -0
- awscli/examples/application-signals/list-service-level-objectives.rst +17 -0
- awscli/examples/application-signals/list-service-operations.rst +63 -0
- awscli/examples/application-signals/list-services.rst +61 -0
- awscli/examples/application-signals/list-tags-for-resource.rst +17 -0
- awscli/examples/application-signals/start-discovery.rst +9 -0
- awscli/examples/application-signals/tag-resource.rst +11 -0
- awscli/examples/application-signals/untag-resource.rst +11 -0
- awscli/examples/application-signals/update-service-level-objective.rst +69 -0
- awscli/examples/cloudformation/create-generated-template.rst +50 -0
- awscli/examples/cloudformation/create-stack-refactor.rst +16 -0
- awscli/examples/cloudformation/delete-generated-template.rst +10 -0
- awscli/examples/cloudformation/describe-generated-template.rst +62 -0
- awscli/examples/cloudformation/describe-resource-scan.rst +38 -0
- awscli/examples/cloudformation/describe-stack-refactor.rst +20 -0
- awscli/examples/cloudformation/execute-stack-refactor.rst +10 -0
- awscli/examples/cloudformation/list-generated-templates.rst +41 -0
- awscli/examples/cloudformation/list-resource-scan-related-resources.rst +47 -0
- awscli/examples/cloudformation/list-resource-scan-resources.rst +30 -0
- awscli/examples/cloudformation/list-stack-refactor-actions.rst +71 -0
- awscli/examples/cloudformation/start-resource-scan.rst +14 -0
- awscli/examples/ec2/authorize-security-group-ingress.rst +1 -1
- awscli/examples/global_options.rst +4 -0
- awscli/examples/global_synopsis.rst +1 -0
- awscli/examples/guardduty/update-detector.rst +23 -0
- awscli/examples/ivs-realtime/get-composition.rst +7 -4
- awscli/examples/ivs-realtime/start-composition.rst +88 -3
- awscli/examples/lambda/create-function.rst +4 -4
- awscli/examples/lambda/get-function.rst +3 -3
- awscli/examples/lambda/list-functions.rst +6 -6
- awscli/examples/medical-imaging/create-datastore.rst +19 -2
- awscli/examples/medical-imaging/get-datastore.rst +24 -1
- awscli/examples/networkmanager/get-vpc-attachment.rst +1 -1
- awscli/examples/securityhub/describe-hub.rst +6 -4
- awscli/examples/servicediscovery/create-service.rst +50 -10
- awscli/examples/servicediscovery/delete-namespace.rst +18 -4
- awscli/examples/servicediscovery/delete-service-attributes.rst +15 -3
- awscli/examples/servicediscovery/delete-service.rst +13 -3
- awscli/examples/servicediscovery/deregister-instance.rst +18 -2
- awscli/examples/servicediscovery/discover-instances-revision.rst +18 -1
- awscli/examples/servicediscovery/discover-instances.rst +32 -2
- awscli/examples/servicediscovery/get-instance.rst +30 -4
- awscli/examples/servicediscovery/get-instances-health-status.rst +19 -1
- awscli/examples/servicediscovery/get-namespace.rst +40 -9
- awscli/examples/servicediscovery/get-operation.rst +32 -6
- awscli/examples/servicediscovery/get-service-attributes.rst +25 -3
- awscli/examples/servicediscovery/get-service.rst +35 -7
- awscli/examples/servicediscovery/list-instances.rst +38 -3
- awscli/examples/servicediscovery/list-namespaces.rst +45 -22
- awscli/examples/servicediscovery/list-services.rst +30 -2
- awscli/examples/servicediscovery/register-instance.rst +18 -2
- awscli/examples/servicediscovery/update-http-namespace.rst +22 -5
- awscli/examples/servicediscovery/update-instance-custom-health-status.rst +14 -1
- awscli/examples/servicediscovery/update-private-dns-namespace.rst +22 -5
- awscli/examples/servicediscovery/update-public-dns-namespace.rst +22 -5
- awscli/examples/servicediscovery/update-service-attributes.rst +14 -2
- awscli/examples/servicediscovery/update-service.rst +20 -4
- awscli/handlers.py +0 -4
- awscli/paramfile.py +21 -4
- awscli/testutils.py +17 -0
- awscli/topics/config-vars.rst +1 -1
- awscli/topics/s3-case-insensitivity.rst +105 -0
- awscli/topics/topic-tags.json +16 -0
- awscli/utils.py +19 -2
- {awscli-1.42.7.dist-info → awscli-1.44.26.dist-info}/METADATA +16 -3
- {awscli-1.42.7.dist-info → awscli-1.44.26.dist-info}/RECORD +112 -231
- awscli/customizations/opsworks.py +0 -543
- awscli/customizations/opsworkscm.py +0 -21
- awscli/examples/elastictranscoder/cancel-job.rst +0 -8
- awscli/examples/elastictranscoder/create-job.rst +0 -94
- awscli/examples/elastictranscoder/create-pipeline.rst +0 -94
- awscli/examples/elastictranscoder/create-preset.rst +0 -141
- awscli/examples/elastictranscoder/delete-pipeline.rst +0 -13
- awscli/examples/elastictranscoder/delete-preset.rst +0 -8
- awscli/examples/elastictranscoder/list-jobs-by-pipeline.rst +0 -13
- awscli/examples/elastictranscoder/list-jobs-by-status.rst +0 -14
- awscli/examples/elastictranscoder/list-pipelines.rst +0 -84
- awscli/examples/elastictranscoder/list-presets.rst +0 -95
- awscli/examples/elastictranscoder/read-job.rst +0 -65
- awscli/examples/elastictranscoder/read-pipeline.rst +0 -59
- awscli/examples/elastictranscoder/read-preset.rst +0 -100
- awscli/examples/elastictranscoder/update-pipeline-notifications.rst +0 -52
- awscli/examples/elastictranscoder/update-pipeline-status.rst +0 -53
- awscli/examples/elastictranscoder/update-pipeline.rst +0 -95
- awscli/examples/opsworks/assign-instance.rst +0 -14
- awscli/examples/opsworks/assign-volume.rst +0 -17
- awscli/examples/opsworks/associate-elastic-ip.rst +0 -14
- awscli/examples/opsworks/attach-elastic-load-balancer.rst +0 -14
- awscli/examples/opsworks/create-app.rst +0 -64
- awscli/examples/opsworks/create-deployment.rst +0 -66
- awscli/examples/opsworks/create-instance.rst +0 -25
- awscli/examples/opsworks/create-layer.rst +0 -17
- awscli/examples/opsworks/create-server.rst +0 -43
- awscli/examples/opsworks/create-stack.rst +0 -25
- awscli/examples/opsworks/create-user-profile.rst +0 -24
- awscli/examples/opsworks/delete-app.rst +0 -17
- awscli/examples/opsworks/delete-instance.rst +0 -15
- awscli/examples/opsworks/delete-layer.rst +0 -17
- awscli/examples/opsworks/delete-stack.rst +0 -18
- awscli/examples/opsworks/delete-user-profile.rst +0 -17
- awscli/examples/opsworks/deregister-elastic-ip.rst +0 -13
- awscli/examples/opsworks/deregister-instance.rst +0 -14
- awscli/examples/opsworks/deregister-rds-db-instance.rst +0 -20
- awscli/examples/opsworks/deregister-volume.rst +0 -15
- awscli/examples/opsworks/describe-apps.rst +0 -38
- awscli/examples/opsworks/describe-commands.rst +0 -43
- awscli/examples/opsworks/describe-deployments.rst +0 -52
- awscli/examples/opsworks/describe-elastic-ips.rst +0 -24
- awscli/examples/opsworks/describe-elastic-load-balancers.rst +0 -37
- awscli/examples/opsworks/describe-instances.rst +0 -95
- awscli/examples/opsworks/describe-layers.rst +0 -171
- awscli/examples/opsworks/describe-load-based-auto-scaling.rst +0 -37
- awscli/examples/opsworks/describe-my-user-profile.rst +0 -24
- awscli/examples/opsworks/describe-permissions.rst +0 -26
- awscli/examples/opsworks/describe-raid-arrays.rst +0 -31
- awscli/examples/opsworks/describe-rds-db-instances.rst +0 -29
- awscli/examples/opsworks/describe-stack-provisioning-parameters.rst +0 -32
- awscli/examples/opsworks/describe-stack-summary.rst +0 -27
- awscli/examples/opsworks/describe-stacks.rst +0 -65
- awscli/examples/opsworks/describe-timebased-auto-scaling.rst +0 -39
- awscli/examples/opsworks/describe-user-profiles.rst +0 -32
- awscli/examples/opsworks/describe-volumes.rst +0 -31
- awscli/examples/opsworks/detach-elastic-load-balancer.rst +0 -14
- awscli/examples/opsworks/disassociate-elastic-ip.rst +0 -14
- awscli/examples/opsworks/get-hostname-suggestion.rst +0 -21
- awscli/examples/opsworks/reboot-instance.rst +0 -14
- awscli/examples/opsworks/register-elastic-ip.rst +0 -19
- awscli/examples/opsworks/register-rds-db-instance.rst +0 -15
- awscli/examples/opsworks/register-volume.rst +0 -18
- awscli/examples/opsworks/register.rst +0 -105
- awscli/examples/opsworks/set-load-based-auto-scaling.rst +0 -38
- awscli/examples/opsworks/set-permission.rst +0 -23
- awscli/examples/opsworks/set-time-based-auto-scaling.rst +0 -33
- awscli/examples/opsworks/start-instance.rst +0 -20
- awscli/examples/opsworks/start-stack.rst +0 -15
- awscli/examples/opsworks/stop-instance.rst +0 -20
- awscli/examples/opsworks/stop-stack.rst +0 -15
- awscli/examples/opsworks/unassign-instance.rst +0 -14
- awscli/examples/opsworks/unassign-volume.rst +0 -16
- awscli/examples/opsworks/update-app.rst +0 -14
- awscli/examples/opsworks/update-elastic-ip.rst +0 -14
- awscli/examples/opsworks/update-instance.rst +0 -14
- awscli/examples/opsworks/update-layer.rst +0 -14
- awscli/examples/opsworks/update-my-user-profile.rst +0 -16
- awscli/examples/opsworks/update-rds-db-instance.rst +0 -18
- awscli/examples/opsworks/update-volume.rst +0 -16
- awscli/examples/opsworkscm/associate-node.rst +0 -22
- awscli/examples/opsworkscm/create-backup.rst +0 -46
- awscli/examples/opsworkscm/create-server.rst +0 -48
- awscli/examples/opsworkscm/delete-backup.rst +0 -17
- awscli/examples/opsworkscm/delete-server.rst +0 -16
- awscli/examples/opsworkscm/describe-account-attributes.rst +0 -26
- awscli/examples/opsworkscm/describe-backups.rst +0 -44
- awscli/examples/opsworkscm/describe-events.rst +0 -21
- awscli/examples/opsworkscm/describe-node-association-status.rst +0 -20
- awscli/examples/opsworkscm/describe-servers.rst +0 -48
- awscli/examples/opsworkscm/disassociate-node.rst +0 -19
- awscli/examples/opsworkscm/restore-server.rst +0 -20
- awscli/examples/opsworkscm/start-maintenance.rst +0 -39
- awscli/examples/opsworkscm/update-server-engine-attributes.rst +0 -43
- awscli/examples/opsworkscm/update-server.rst +0 -42
- awscli/examples/qldb/cancel-journal-kinesis-stream.rst +0 -15
- awscli/examples/qldb/create-ledger.rst +0 -43
- awscli/examples/qldb/delete-ledger.rst +0 -10
- awscli/examples/qldb/describe-journal-kinesis-stream.rst +0 -29
- awscli/examples/qldb/describe-journal-s3-export.rst +0 -30
- awscli/examples/qldb/describe-ledger.rst +0 -23
- awscli/examples/qldb/export-journal-to-s3.rst +0 -28
- awscli/examples/qldb/get-block.rst +0 -55
- awscli/examples/qldb/get-digest.rst +0 -17
- awscli/examples/qldb/get-revision.rst +0 -57
- awscli/examples/qldb/list-journal-kinesis-streams-for-ledger.rst +0 -30
- awscli/examples/qldb/list-journal-s3-exports-for-ledger.rst +0 -31
- awscli/examples/qldb/list-journal-s3-exports.rst +0 -46
- awscli/examples/qldb/list-ledgers.rst +0 -24
- awscli/examples/qldb/list-tags-for-resource.rst +0 -17
- awscli/examples/qldb/stream-journal-to-kinesis.rst +0 -46
- awscli/examples/qldb/tag-resource.rst +0 -11
- awscli/examples/qldb/untag-resource.rst +0 -11
- awscli/examples/qldb/update-ledger-permissions-mode.rst +0 -34
- awscli/examples/qldb/update-ledger.rst +0 -63
- awscli/examples/robomaker/batch-describe-simulation-job.rst +0 -150
- awscli/examples/robomaker/cancel-simulation-job.rst +0 -6
- awscli/examples/robomaker/create-deployment-job.rst +0 -37
- awscli/examples/robomaker/create-fleet.rst +0 -18
- awscli/examples/robomaker/create-robot-application-version.rst +0 -31
- awscli/examples/robomaker/create-robot-application.rst +0 -29
- awscli/examples/robomaker/create-robot.rst +0 -20
- awscli/examples/robomaker/create-simulation-application-version.rst +0 -39
- awscli/examples/robomaker/create-simulation-application.rst +0 -38
- awscli/examples/robomaker/create-simulation-job.rst +0 -43
- awscli/examples/robomaker/delete-fleet.rst +0 -7
- awscli/examples/robomaker/delete-robot-application.rst +0 -7
- awscli/examples/robomaker/delete-robot.rst +0 -7
- awscli/examples/robomaker/delete-simulation-application.rst +0 -7
- awscli/examples/robomaker/deregister-robot.rst +0 -14
- awscli/examples/robomaker/describe-deployment-job.rst +0 -38
- awscli/examples/robomaker/describe-fleet.rst +0 -28
- awscli/examples/robomaker/describe-robot-application.rst +0 -29
- awscli/examples/robomaker/describe-robot.rst +0 -21
- awscli/examples/robomaker/describe-simulation-application.rst +0 -37
- awscli/examples/robomaker/describe-simulation-job.rst +0 -45
- awscli/examples/robomaker/list-deployment-jobs.rst +0 -57
- awscli/examples/robomaker/list-fleets.rst +0 -22
- awscli/examples/robomaker/list-robot-applications.rst +0 -32
- awscli/examples/robomaker/list-robots.rst +0 -45
- awscli/examples/robomaker/list-simulation-applications.rst +0 -50
- awscli/examples/robomaker/list-simulation-jobs.rst +0 -80
- awscli/examples/robomaker/list-tags-for-resource.rst +0 -16
- awscli/examples/robomaker/register-robot.rst +0 -14
- awscli/examples/robomaker/restart-simulation-job.rst +0 -7
- awscli/examples/robomaker/sync-deployment-job.rst +0 -30
- awscli/examples/robomaker/tag-resource.rst +0 -7
- awscli/examples/robomaker/untag-resource.rst +0 -7
- awscli/examples/robomaker/update-robot-application.rst +0 -28
- awscli/examples/robomaker/update-simulation-application.rst +0 -36
- {awscli-1.42.7.data → awscli-1.44.26.data}/scripts/aws +0 -0
- {awscli-1.42.7.data → awscli-1.44.26.data}/scripts/aws.cmd +0 -0
- {awscli-1.42.7.data → awscli-1.44.26.data}/scripts/aws_bash_completer +0 -0
- {awscli-1.42.7.data → awscli-1.44.26.data}/scripts/aws_completer +0 -0
- {awscli-1.42.7.data → awscli-1.44.26.data}/scripts/aws_zsh_completer.sh +0 -0
- {awscli-1.42.7.dist-info → awscli-1.44.26.dist-info}/LICENSE.txt +0 -0
- {awscli-1.42.7.dist-info → awscli-1.44.26.dist-info}/WHEEL +0 -0
- {awscli-1.42.7.dist-info → awscli-1.44.26.dist-info}/top_level.txt +0 -0
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
**To create a service**
|
|
1
|
+
**Example 1: To create a service using namespace ID**
|
|
2
2
|
|
|
3
3
|
The following ``create-service`` example creates a service. ::
|
|
4
4
|
|
|
5
5
|
aws servicediscovery create-service \
|
|
6
6
|
--name myservice \
|
|
7
7
|
--namespace-id ns-ylexjili4cdxy3xm \
|
|
8
|
-
--dns-config "
|
|
8
|
+
--dns-config "RoutingPolicy=MULTIVALUE,DnsRecords=[{Type=A,TTL=60}]"
|
|
9
9
|
|
|
10
10
|
Output::
|
|
11
11
|
|
|
12
12
|
{
|
|
13
|
-
|
|
14
|
-
"Id": "srv-
|
|
15
|
-
"Arn": "arn:aws:servicediscovery:us-west-2:
|
|
13
|
+
"Service": {
|
|
14
|
+
"Id": "srv-abcd1234xmpl5678",
|
|
15
|
+
"Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678",
|
|
16
|
+
"ResourceOwner": "123456789012",
|
|
16
17
|
"Name": "myservice",
|
|
17
|
-
"NamespaceId": "ns-
|
|
18
|
+
"NamespaceId": "ns-abcd1234xmpl5678",
|
|
18
19
|
"DnsConfig": {
|
|
19
|
-
"NamespaceId": "ns-
|
|
20
|
+
"NamespaceId": "ns-abcd1234xmpl5678",
|
|
20
21
|
"RoutingPolicy": "MULTIVALUE",
|
|
21
22
|
"DnsRecords": [
|
|
22
23
|
{
|
|
@@ -25,10 +26,49 @@ Output::
|
|
|
25
26
|
}
|
|
26
27
|
]
|
|
27
28
|
},
|
|
28
|
-
"
|
|
29
|
-
"
|
|
29
|
+
"Type": "DNS_HTTP",
|
|
30
|
+
"CreateDate": "2025-08-18T13:45:31.023000-05:00",
|
|
31
|
+
"CreatorRequestId": "abcd1234-5678-90ab-cdef-xmpl12345678",
|
|
32
|
+
"CreatedByAccount": "123456789012"
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
For more information, see `Creating
|
|
36
|
+
For more information, see `Creating an AWS Cloud Map service for an application component <https://docs.aws.amazon.com/cloud-map/latest/dg/creating-services.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
37
|
+
|
|
38
|
+
**Example 2: To create a service using namespace ARN**
|
|
39
|
+
|
|
40
|
+
The following ``create-service`` example creates a service using a namespace ARN instead of namespace ID. Specifying a namespace ARN is necessary when creating a service in a shared namespace. ::
|
|
41
|
+
|
|
42
|
+
aws servicediscovery create-service \
|
|
43
|
+
--name myservice-arn \
|
|
44
|
+
--namespace-id arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678 \
|
|
45
|
+
--dns-config "RoutingPolicy=MULTIVALUE,DnsRecords=[{Type=A,TTL=60}]"
|
|
46
|
+
|
|
47
|
+
Output::
|
|
48
|
+
|
|
49
|
+
{
|
|
50
|
+
"Service": {
|
|
51
|
+
"Id": "srv-abcd1234xmpl5678",
|
|
52
|
+
"Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678",
|
|
53
|
+
"ResourceOwner": "123456789012",
|
|
54
|
+
"Name": "myservice-arn",
|
|
55
|
+
"NamespaceId": "ns-abcd1234xmpl5678",
|
|
56
|
+
"DnsConfig": {
|
|
57
|
+
"NamespaceId": "ns-abcd1234xmpl5678",
|
|
58
|
+
"RoutingPolicy": "MULTIVALUE",
|
|
59
|
+
"DnsRecords": [
|
|
60
|
+
{
|
|
61
|
+
"Type": "A",
|
|
62
|
+
"TTL": 60
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"Type": "DNS_HTTP",
|
|
67
|
+
"CreateDate": "2025-08-18T13:45:31.023000-05:00",
|
|
68
|
+
"CreatorRequestId": "abcd1234-5678-90ab-cdef-xmpl12345678",
|
|
69
|
+
"CreatedByAccount": "123456789012"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
For more information, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
34
74
|
|
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
**To delete a namespace**
|
|
1
|
+
**Example 1: To delete a namespace**
|
|
2
2
|
|
|
3
3
|
The following ``delete-namespace`` example deletes a namespace. ::
|
|
4
4
|
|
|
5
5
|
aws servicediscovery delete-namespace \
|
|
6
|
-
--id ns-
|
|
6
|
+
--id ns-abcd1234xmpl5678
|
|
7
7
|
|
|
8
8
|
Output::
|
|
9
9
|
|
|
10
10
|
{
|
|
11
|
-
"OperationId": "
|
|
11
|
+
"OperationId": "abcd1234-5678-90ab-cdef-xmpl12345678"
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
To confirm that the operation succeeded, you can run ``get-operation``. For more information, see `get-operation <https://docs.aws.amazon.com/cli/latest/reference/servicediscovery/get-operation.html>`__ .
|
|
15
15
|
|
|
16
|
-
For more information, see `Deleting
|
|
16
|
+
For more information, see `Deleting an AWS Cloud Map namespace <https://docs.aws.amazon.com/cloud-map/latest/dg/deleting-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
17
17
|
|
|
18
|
+
**Example 2: To delete a namespace using namespace ARN**
|
|
19
|
+
|
|
20
|
+
The following ``delete-namespace`` example deletes a namespace using its ARN. ::
|
|
21
|
+
|
|
22
|
+
aws servicediscovery delete-namespace \
|
|
23
|
+
--id arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678
|
|
24
|
+
|
|
25
|
+
Output::
|
|
26
|
+
|
|
27
|
+
{
|
|
28
|
+
"OperationId": "abcd1234-5678-90ab-cdef-xmpl12345678"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
For more information, see `Deleting an AWS Cloud Map namespace <https://docs.aws.amazon.com/cloud-map/latest/dg/deleting-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
**To delete a service attribute**
|
|
1
|
+
**Example 1: To delete a service attribute**
|
|
2
2
|
|
|
3
3
|
The following ``delete-service-attributes`` example deletes a service attribute with the key ``Port`` that is associated with the specified service. ::
|
|
4
4
|
|
|
5
5
|
aws servicediscovery delete-service-attributes \
|
|
6
|
-
--service-id srv-
|
|
6
|
+
--service-id srv-abcd1234xmpl5678 \
|
|
7
7
|
--attributes Port
|
|
8
8
|
|
|
9
9
|
This command produces no output.
|
|
10
10
|
|
|
11
|
-
For more information, see `
|
|
11
|
+
For more information, see `AWS Cloud Map services <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
12
|
+
|
|
13
|
+
**Example 2: To delete a service attribute using ARN**
|
|
14
|
+
|
|
15
|
+
The following ``delete-service-attributes`` example deletes a service attribute using the service ARN. Specifying the ARN is necessary for deleting attributes associated with services created in namespaces shared with your account. ::
|
|
16
|
+
|
|
17
|
+
aws servicediscovery delete-service-attributes \
|
|
18
|
+
--service-id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678 \
|
|
19
|
+
--attributes Port
|
|
20
|
+
|
|
21
|
+
This command produces no output.
|
|
22
|
+
|
|
23
|
+
For more information, see `AWS Cloud Map services <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html>`__ and `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
**To delete a service**
|
|
1
|
+
**Example 1: To delete a service**
|
|
2
2
|
|
|
3
3
|
The following ``delete-service`` example deletes a service. ::
|
|
4
4
|
|
|
5
5
|
aws servicediscovery delete-service \
|
|
6
|
-
--id srv-
|
|
6
|
+
--id srv-abcd1234xmpl5678
|
|
7
7
|
|
|
8
8
|
This command produces no output.
|
|
9
9
|
|
|
10
|
-
For more information, see `Deleting
|
|
10
|
+
For more information, see `Deleting an AWS Cloud Map service <https://docs.aws.amazon.com/cloud-map/latest/dg/deleting-services.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
11
11
|
|
|
12
|
+
**Example 2: To delete a service using ARN**
|
|
13
|
+
|
|
14
|
+
The following ``delete-service`` example deletes a service using its ARN. ::
|
|
15
|
+
|
|
16
|
+
aws servicediscovery delete-service \
|
|
17
|
+
--id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678
|
|
18
|
+
|
|
19
|
+
This command produces no output.
|
|
20
|
+
|
|
21
|
+
For more information, see `Deleting an AWS Cloud Map service <https://docs.aws.amazon.com/cloud-map/latest/dg/deleting-services.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**To deregister a service instance**
|
|
1
|
+
**Example 1: To deregister a service instance**
|
|
2
2
|
|
|
3
3
|
The following ``deregister-instance`` example deregisters a service instance. ::
|
|
4
4
|
|
|
@@ -12,7 +12,23 @@ Output::
|
|
|
12
12
|
"OperationId": "4yejorelbukcjzpnr6tlmrghsjwpngf4-k98rnaiq"
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
To confirm that the operation succeeded, you can run ``get-operation``. For more information, see `get-operation <https://docs.aws.amazon.com/cli/latest/reference/servicediscovery/get-operation.html>`__
|
|
15
|
+
To confirm that the operation succeeded, you can run ``get-operation``. For more information, see `get-operation <https://docs.aws.amazon.com/cli/latest/reference/servicediscovery/get-operation.html>`__.
|
|
16
16
|
|
|
17
17
|
For more information, see `Deregistering service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/deregistering-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
18
18
|
|
|
19
|
+
**Example 2: To deregister a service instance using service ARN for shared namespaces**
|
|
20
|
+
|
|
21
|
+
The following ``deregister-instance`` example deregisters a service instance using a service ARN instead of service ID. Specifying an ARN is required when deregistering instances from services created in namespaces that are shared with your account. ::
|
|
22
|
+
|
|
23
|
+
aws servicediscovery deregister-instance \
|
|
24
|
+
--service-id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita \
|
|
25
|
+
--instance-id web-server-01
|
|
26
|
+
|
|
27
|
+
Output::
|
|
28
|
+
|
|
29
|
+
{
|
|
30
|
+
"OperationId": "gv4g5meo7ndmkqjrhpn39wk42xmpl"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
For more information, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ and `Deregistering an AWS Cloud Map service instance <https://docs.aws.amazon.com/cloud-map/latest/dg/deregistering-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
34
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**To discover the revision of an instance**
|
|
1
|
+
**Example 1: To discover the revision of an instance**
|
|
2
2
|
|
|
3
3
|
The following ``discover-instances-revision`` example discovers the increasing revision of an instance. ::
|
|
4
4
|
|
|
@@ -13,3 +13,20 @@ Output::
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
For more information, see `AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
16
|
+
|
|
17
|
+
**Example 2: To discover the revision of instances from a specific owner account**
|
|
18
|
+
|
|
19
|
+
The following ``discover-instances-revision`` example discovers the revision of instances from a specific owner account. The owner-account parameter is necessary for instances in namespaces that are shared with your account. ::
|
|
20
|
+
|
|
21
|
+
aws servicediscovery discover-instances-revision \
|
|
22
|
+
--namespace-name shared-namespace \
|
|
23
|
+
--service-name shared-service \
|
|
24
|
+
--owner-account 123456789111
|
|
25
|
+
|
|
26
|
+
Output::
|
|
27
|
+
|
|
28
|
+
{
|
|
29
|
+
"InstancesRevision": 1234567890
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
For more information, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ and `AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**To discover registered instances**
|
|
1
|
+
**Example 1: To discover registered instances**
|
|
2
2
|
|
|
3
3
|
The following ``discover-instances`` example discovers registered instances. ::
|
|
4
4
|
|
|
@@ -22,7 +22,37 @@ Output::
|
|
|
22
22
|
"AWS_INSTANCE_PORT": "808"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
]
|
|
25
|
+
],
|
|
26
|
+
"InstancesRevision": 85648075627387284
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
For more information, see `AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
30
|
+
|
|
31
|
+
**Example 2: To discover instances from a specific owner account**
|
|
32
|
+
|
|
33
|
+
The following ``discover-instances`` example discovers registered instances from a specific owner account. This parameter is necessary to discover instances in namespaces that are shared with your account. ::
|
|
34
|
+
|
|
35
|
+
aws servicediscovery discover-instances \
|
|
36
|
+
--namespace-name shared-namespace \
|
|
37
|
+
--service-name shared-service \
|
|
38
|
+
--owner-account 123456789111
|
|
39
|
+
|
|
40
|
+
Output::
|
|
41
|
+
|
|
42
|
+
{
|
|
43
|
+
"Instances": [
|
|
44
|
+
{
|
|
45
|
+
"InstanceId": "shared-instance-1234",
|
|
46
|
+
"NamespaceName": "shared-namespace",
|
|
47
|
+
"ServiceName": "shared-service",
|
|
48
|
+
"HealthStatus": "HEALTHY",
|
|
49
|
+
"Attributes": {
|
|
50
|
+
"AWS_INSTANCE_IPV4": "203.0.113.75",
|
|
51
|
+
"AWS_INSTANCE_PORT": "80"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"InstancesRevision": 1234567890
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
For more information, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ and `AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**To get the details of an instance**
|
|
1
|
+
**Example 1: To get the details of an instance**
|
|
2
2
|
|
|
3
3
|
The following ``get-instance`` example gets the attributes of a service. ::
|
|
4
4
|
|
|
@@ -8,8 +8,9 @@ The following ``get-instance`` example gets the attributes of a service. ::
|
|
|
8
8
|
|
|
9
9
|
Output::
|
|
10
10
|
|
|
11
|
-
{
|
|
12
|
-
"
|
|
11
|
+
{
|
|
12
|
+
"ResourceOwner": "123456789012",
|
|
13
|
+
"Instance": {
|
|
13
14
|
"Id": "arn:aws:servicediscovery:us-west-2:111122223333;:service/srv-e4anhexample0004",
|
|
14
15
|
"Attributes": {
|
|
15
16
|
"AWS_INSTANCE_IPV4": "192.0.2.44",
|
|
@@ -17,8 +18,33 @@ Output::
|
|
|
17
18
|
"color": "green",
|
|
18
19
|
"region": "us-west-2",
|
|
19
20
|
"stage": "beta"
|
|
20
|
-
}
|
|
21
|
+
},
|
|
22
|
+
"CreatedByAccount": "123456789012"
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
For more information, see `AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
27
|
+
|
|
28
|
+
**Example 2: To get the details of an instance using service ARN for shared namespaces**
|
|
29
|
+
|
|
30
|
+
The following ``get-instance`` example gets the attributes of an instance using a service ARN instead of service ID. Specifying an ARN is required when getting details of instances associated with namespaces that are shared with your account. The instance returned in this example was registered by account ``123456789111`` in a namespace owned by account ``123456789012``. ::
|
|
31
|
+
|
|
32
|
+
aws servicediscovery get-instance \
|
|
33
|
+
--service-id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita \
|
|
34
|
+
--instance-id web-server-01
|
|
35
|
+
|
|
36
|
+
Output::
|
|
37
|
+
|
|
38
|
+
{
|
|
39
|
+
"ResourceOwner": "123456789012",
|
|
40
|
+
"Instance": {
|
|
41
|
+
"Id": "web-server-01",
|
|
42
|
+
"Attributes": {
|
|
43
|
+
"AWS_INSTANCE_IPV4": "203.0.113.15",
|
|
44
|
+
"AWS_INSTANCE_PORT": "80"
|
|
45
|
+
},
|
|
46
|
+
"CreatedByAccount": "123456789111"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
For more information about cross-account namespace sharing, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**To get the health status of instances associated with a service**
|
|
1
|
+
**Example 1: To get the health status of instances associated with a service**
|
|
2
2
|
|
|
3
3
|
The following ``get-instances-health-status`` example gets the health status of instances associated with the specified service. ::
|
|
4
4
|
|
|
@@ -15,3 +15,21 @@ Output::
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
For more information, see `AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
18
|
+
|
|
19
|
+
**Example 2: To get the health status of instances using service ARN for shared namespaces**
|
|
20
|
+
|
|
21
|
+
The following ``get-instances-health-status`` example gets the health status of instances using a service ARN instead of service ID. Specifying an ARN is required when getting health status for instances associated with namespaces that are shared with the requester's account. ::
|
|
22
|
+
|
|
23
|
+
aws servicediscovery get-instances-health-status \
|
|
24
|
+
--service-id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita
|
|
25
|
+
|
|
26
|
+
Output::
|
|
27
|
+
|
|
28
|
+
{
|
|
29
|
+
"Status": {
|
|
30
|
+
"web-server-01": "HEALTHY",
|
|
31
|
+
"web-server-02": "UNHEALTHY"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
For more information, see `AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-instances.html>`__ and `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
@@ -1,28 +1,59 @@
|
|
|
1
|
-
**To get the details of a namespace**
|
|
1
|
+
**Example 1: To get the details of a namespace**
|
|
2
2
|
|
|
3
3
|
The following ``get-namespace`` example retrieves information about the specified namespace. ::
|
|
4
4
|
|
|
5
5
|
aws servicediscovery get-namespace \
|
|
6
|
-
--id ns-
|
|
6
|
+
--id ns-abcd1234xmpl5678
|
|
7
7
|
|
|
8
8
|
Output::
|
|
9
9
|
|
|
10
10
|
{
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"Description": "Example.com AWS Cloud Map HTTP Namespace",
|
|
16
|
-
"Id": "ns-e4anhexample0004",
|
|
11
|
+
"Namespace": {
|
|
12
|
+
"Id": "ns-abcd1234xmpl5678",
|
|
13
|
+
"Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678",
|
|
14
|
+
"ResourceOwner": "123456789012",
|
|
17
15
|
"Name": "example-http.com",
|
|
16
|
+
"Type": "HTTP",
|
|
17
|
+
"Description": "Example.com AWS Cloud Map HTTP Namespace",
|
|
18
18
|
"Properties": {
|
|
19
19
|
"DnsProperties": {},
|
|
20
20
|
"HttpProperties": {
|
|
21
21
|
"HttpName": "example-http.com"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"
|
|
24
|
+
"CreateDate": "2024-02-23T13:35:21.874000-06:00",
|
|
25
|
+
"CreatorRequestId": "abcd1234-5678-90ab-cdef-xmpl12345678"
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
For more information, see `AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
30
|
+
|
|
31
|
+
**Example 2: To get the details of a namespace using ARN**
|
|
32
|
+
|
|
33
|
+
The following ``get-namespace`` example retrieves information about the specified namespace using its ARN. Specifying the ARN is necessary for retreiving details of a namespace shared with your account. ::
|
|
34
|
+
|
|
35
|
+
aws servicediscovery get-namespace \
|
|
36
|
+
--id arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678
|
|
37
|
+
|
|
38
|
+
Output::
|
|
39
|
+
|
|
40
|
+
{
|
|
41
|
+
"Namespace": {
|
|
42
|
+
"Id": "ns-abcd1234xmpl5678",
|
|
43
|
+
"Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-abcd1234xmpl5678",
|
|
44
|
+
"ResourceOwner": "123456789012",
|
|
45
|
+
"Name": "example-http.com",
|
|
46
|
+
"Type": "HTTP",
|
|
47
|
+
"Description": "Example.com AWS Cloud Map HTTP Namespace",
|
|
48
|
+
"Properties": {
|
|
49
|
+
"DnsProperties": {},
|
|
50
|
+
"HttpProperties": {
|
|
51
|
+
"HttpName": "example-http.com"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"CreateDate": "2024-02-23T13:35:21.874000-06:00",
|
|
55
|
+
"CreatorRequestId": "abcd1234-5678-90ab-cdef-xmpl12345678"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
For more information, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
@@ -1,23 +1,49 @@
|
|
|
1
|
-
**To get the result of an operation**
|
|
1
|
+
**Example 1: To get the result of an operation**
|
|
2
2
|
|
|
3
3
|
The following ``get-operation`` example gets the result of a namespace creation operation. ::
|
|
4
4
|
|
|
5
5
|
aws servicediscovery get-operation \
|
|
6
|
-
--operation-id
|
|
6
|
+
--operation-id abcd1234xmpl5678abcd1234xmpl5678-abcd1234
|
|
7
7
|
|
|
8
8
|
Output::
|
|
9
9
|
|
|
10
10
|
{
|
|
11
11
|
"Operation": {
|
|
12
|
-
"Id": "
|
|
12
|
+
"Id": "abcd1234xmpl5678abcd1234xmpl5678-abcd1234",
|
|
13
13
|
"Type": "CREATE_NAMESPACE",
|
|
14
14
|
"Status": "SUCCESS",
|
|
15
|
-
"CreateDate":
|
|
16
|
-
"UpdateDate":
|
|
15
|
+
"CreateDate": "2025-01-13T13:35:21.874000-06:00",
|
|
16
|
+
"UpdateDate": "2025-01-13T13:36:02.469000-06:00",
|
|
17
17
|
"Targets": {
|
|
18
|
-
"NAMESPACE": "ns-
|
|
18
|
+
"NAMESPACE": "ns-abcd1234xmpl5678"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
For more information, see `Creating an AWS Cloud Map namespace to group application services <https://docs.aws.amazon.com/cloud-map/latest/dg/creating-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
24
|
+
|
|
25
|
+
**Example 2: To get an operation from a specific owner account**
|
|
26
|
+
|
|
27
|
+
The following ``get-operation`` example gets the result of an operation associated with a specific namespace owner account. This parameter is necessary to get the result of operations associated with namespaces shared with your account. ::
|
|
28
|
+
|
|
29
|
+
aws servicediscovery get-operation \
|
|
30
|
+
--operation-id abcd1234xmpl5678abcd1234xmpl5678-abcd1234 \
|
|
31
|
+
--owner-account 123456789111
|
|
32
|
+
|
|
33
|
+
Output::
|
|
34
|
+
|
|
35
|
+
{
|
|
36
|
+
"Operation": {
|
|
37
|
+
"Id": "abcd1234xmpl5678abcd1234xmpl5678-abcd1234",
|
|
38
|
+
"OwnerAccount": "123456789111",
|
|
39
|
+
"Type": "CREATE_NAMESPACE",
|
|
40
|
+
"Status": "SUCCESS",
|
|
41
|
+
"CreateDate": "2025-01-13T13:35:21.874000-06:00",
|
|
42
|
+
"UpdateDate": "2025-01-13T13:36:02.469000-06:00",
|
|
43
|
+
"Targets": {
|
|
44
|
+
"NAMESPACE": "ns-abcd1234xmpl5678"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
For more information, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
**To get the attributes of
|
|
1
|
+
**Example 1: To get the attributes of a service**
|
|
2
2
|
|
|
3
3
|
The following ``get-service-attributes`` example gets the attributes of a service. ::
|
|
4
4
|
|
|
5
5
|
aws servicediscovery get-service-attributes \
|
|
6
|
-
--service-id srv-
|
|
6
|
+
--service-id srv-abcd1234xmpl5678
|
|
7
7
|
|
|
8
8
|
Output::
|
|
9
9
|
|
|
10
10
|
{
|
|
11
11
|
"ServiceAttributes": {
|
|
12
|
-
"ServiceArn": "arn:aws:servicediscovery:us-west-2:
|
|
12
|
+
"ServiceArn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678",
|
|
13
|
+
"ResourceOwner": "123456789012",
|
|
13
14
|
"Attributes": {
|
|
14
15
|
"Port": "80"
|
|
15
16
|
}
|
|
@@ -17,3 +18,24 @@ Output::
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
For more information, see `AWS Cloud Map services <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
21
|
+
|
|
22
|
+
**Example 2: To get the attributes of a service using ARN**
|
|
23
|
+
|
|
24
|
+
The following ``get-service-attributes`` example gets the attributes of a service using its ARN. Specifying an ARN is necessary for getting attributes of a service created in a namespace shared with your account. ::
|
|
25
|
+
|
|
26
|
+
aws servicediscovery get-service-attributes \
|
|
27
|
+
--service-id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678
|
|
28
|
+
|
|
29
|
+
Output::
|
|
30
|
+
|
|
31
|
+
{
|
|
32
|
+
"ServiceAttributes": {
|
|
33
|
+
"ServiceArn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678",
|
|
34
|
+
"ResourceOwner": "123456789012",
|
|
35
|
+
"Attributes": {
|
|
36
|
+
"Port": "80"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
For more information, see `AWS Cloud Map services <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html>`__ and `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
@@ -1,23 +1,51 @@
|
|
|
1
|
-
**To get the settings of a service**
|
|
1
|
+
**Example 1: To get the settings of a service**
|
|
2
2
|
|
|
3
3
|
The following ``get-service`` example gets the settings of a specified service. ::
|
|
4
4
|
|
|
5
5
|
aws servicediscovery get-service \
|
|
6
|
-
--id srv-
|
|
6
|
+
--id srv-abcd1234xmpl5678
|
|
7
7
|
|
|
8
8
|
Output::
|
|
9
9
|
|
|
10
10
|
{
|
|
11
11
|
"Service": {
|
|
12
|
-
"Id": "srv-
|
|
13
|
-
"Arn": "arn:aws:servicediscovery:us-west-2:
|
|
12
|
+
"Id": "srv-abcd1234xmpl5678",
|
|
13
|
+
"Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678",
|
|
14
|
+
"ResourceOwner": "123456789012",
|
|
14
15
|
"Name": "test-service",
|
|
15
|
-
"NamespaceId": "ns-
|
|
16
|
+
"NamespaceId": "ns-abcd1234xmpl5678",
|
|
16
17
|
"DnsConfig": {},
|
|
17
18
|
"Type": "HTTP",
|
|
18
|
-
"CreateDate": "2025-
|
|
19
|
-
"CreatorRequestId": "
|
|
19
|
+
"CreateDate": "2025-08-18T13:53:02.775000-05:00",
|
|
20
|
+
"CreatorRequestId": "abcd1234-5678-90ab-cdef-xmpl12345678",
|
|
21
|
+
"CreatedByAccount": "123456789012"
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
For more information, see `AWS Cloud Map services <https://docs.aws.amazon.com/cloud-map/latest/dg/working-with-services.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
26
|
+
|
|
27
|
+
**Example 2: To get the settings of a service using ARN**
|
|
28
|
+
|
|
29
|
+
The following ``get-service`` example gets the settings of a specified service using its ARN. Specifying the ARN is necessary when retrieving information about a service created in a namespace that is shared with your account. The caller account ``123456789111`` created the service in a namespace shared by account ``123456789012``. ::
|
|
30
|
+
|
|
31
|
+
aws servicediscovery get-service \
|
|
32
|
+
--id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678
|
|
33
|
+
|
|
34
|
+
Output::
|
|
35
|
+
|
|
36
|
+
{
|
|
37
|
+
"Service": {
|
|
38
|
+
"Id": "srv-abcd1234xmpl5678",
|
|
39
|
+
"Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-abcd1234xmpl5678",
|
|
40
|
+
"ResourceOwner": "123456789012",
|
|
41
|
+
"Name": "test-service",
|
|
42
|
+
"NamespaceId": "ns-abcd1234xmpl5678",
|
|
43
|
+
"DnsConfig": {},
|
|
44
|
+
"Type": "HTTP",
|
|
45
|
+
"CreateDate": "2025-08-18T13:53:02.775000-05:00",
|
|
46
|
+
"CreatorRequestId": "abcd1234-5678-90ab-cdef-xmpl12345678",
|
|
47
|
+
"CreatedByAccount": "123456789111"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
For more information, see `Creating an AWS Cloud Map service for an application component <https://docs.aws.amazon.com/cloud-map/latest/dg/creating-services.html>`__ and `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**To list service instances**
|
|
1
|
+
**Example 1: To list service instances**
|
|
2
2
|
|
|
3
3
|
The following ``list-instances`` example lists service instances. ::
|
|
4
4
|
|
|
@@ -14,10 +14,45 @@ Output::
|
|
|
14
14
|
"Attributes": {
|
|
15
15
|
"AWS_INSTANCE_IPV4": "172.2.1.3",
|
|
16
16
|
"AWS_INSTANCE_PORT": "808"
|
|
17
|
-
}
|
|
17
|
+
},
|
|
18
|
+
"CreatedByAccount": "123456789012"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"ResourceOwner": "123456789012"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
For more information, see `Listing AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/listing-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
25
|
+
|
|
26
|
+
**Example 2: To list service instances using service ARN**
|
|
27
|
+
|
|
28
|
+
The following ``list-instances`` example lists service instances using a service ARN instead of service ID. Specifying an ARN is required when listing instances associated with namespaces that are shared with your account. ::
|
|
29
|
+
|
|
30
|
+
aws servicediscovery list-instances \
|
|
31
|
+
--service-id arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita
|
|
32
|
+
|
|
33
|
+
Output::
|
|
34
|
+
|
|
35
|
+
{
|
|
36
|
+
"ResourceOwner": "123456789012",
|
|
37
|
+
"Instances": [
|
|
38
|
+
{
|
|
39
|
+
"Id": "web-server-01",
|
|
40
|
+
"Attributes": {
|
|
41
|
+
"AWS_INSTANCE_IPV4": "203.0.113.15",
|
|
42
|
+
"AWS_INSTANCE_PORT": "80"
|
|
43
|
+
},
|
|
44
|
+
"CreatedByAccount": "123456789012"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"Id": "web-server-02",
|
|
48
|
+
"Attributes": {
|
|
49
|
+
"AWS_INSTANCE_IPV4": "203.0.113.16",
|
|
50
|
+
"AWS_INSTANCE_PORT": "80"
|
|
51
|
+
},
|
|
52
|
+
"CreatedByAccount": "123456789012"
|
|
18
53
|
}
|
|
19
54
|
]
|
|
20
55
|
}
|
|
21
56
|
|
|
22
|
-
For more information, see `
|
|
57
|
+
For more information about cross-account namespace sharing, see `Shared AWS Cloud Map namespaces <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`_ and `Listing AWS Cloud Map service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/listing-instances.html>`__ in the *AWS Cloud Map Developer Guide*.
|
|
23
58
|
|