envs_1 / data /lib /python3.10 /site-packages /awscli /examples /servicediscovery /register-instance.rst
Download data/lib/python3.10/site-packages/awscli/examples/servicediscovery/register-instance.rst from ZTWHHH/envs_1: direct link, hf CLI and curl.
- Browser
- Download file 778 Bytes
-
https://huggingface.co/datasets/ZTWHHH/envs_1/resolve/main/data/lib/python3.10/site-packages/awscli/examples/servicediscovery/register-instance.rst
- Command line
-
hf download hf://datasets/ZTWHHH/envs_1/data/lib/python3.10/site-packages/awscli/examples/servicediscovery/register-instance.rst
-
curl -L -o register-instance.rst https://huggingface.co/datasets/ZTWHHH/envs_1/resolve/main/data/lib/python3.10/site-packages/awscli/examples/servicediscovery/register-instance.rst
778 Bytes
| **To register a service instance** | |
| The following ``register-instance`` example registers a service instance. :: | |
| aws servicediscovery register-instance \ | |
| --service-id srv-p5zdwlg5uvvzjita \ | |
| --instance-id myservice-53 \ | |
| --attributes=AWS_INSTANCE_IPV4=172.2.1.3,AWS_INSTANCE_PORT=808 | |
| Output:: | |
| { | |
| "OperationId": "4yejorelbukcjzpnr6tlmrghsjwpngf4-k95yg2u7" | |
| } | |
| 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>`__ . | |
| For more information, see `Registering instances <https://docs.aws.amazon.com/cloud-map/latest/dg/registering-instances.html>`__ in the *AWS Cloud Map Developer Guide*. | |