CmdID

CmdID / aws / aws appmesh

aws appmesh update-virtual-service

Updates an existing virtual service in a specified service mesh. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To update a virtual service

The following update-virtual-service example uses a JSON input file to update a virtual service to use a virtual router provider.

aws appmesh update-virtual-service --cli-input-json file://update-virtual-service.jsonIdentify

Contents of update-virtual-service.json:

{
    "meshName": "app1",
    "spec": {
        "provider": {
            "virtualRouter": {
                "virtualRouterName": "vrServiceA"
            }
        }
    },
    "virtualServiceName": "serviceA.svc.cluster.local"
}
Its output
{
    "virtualService": {
        "meshName": "app1",
        "metadata": {
            "arn": "arn:aws:appmesh:us-west-2:123456789012:mesh/app1/virtualService/serviceA.svc.cluster.local",
            "createdAt": 1563810859.474,
            "lastUpdatedAt": 1563820257.411,
            "uid": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "version": 3
        },
        "spec": {
            "provider": {
                "virtualRouter": {
                    "virtualRouterName": "vrServiceA"
                }
            }
        },
        "status": {
            "status": "ACTIVE"
        },
        "virtualServiceName": "serviceA.svc.cluster.local"
    }
}

For more information, see Virtual Services in the AWS App Mesh User Guide.

Options

5 in the AWS CLI reference
--client-tokenUnique, case-sensitive identifier that you provide to ensure the idempotency of the request.
--mesh-nameThe name of the service mesh that the virtual service resides in.
--mesh-ownerThe Amazon Web Services IAM account ID of the service mesh owner.
--specThe new virtual service specification to apply.
--virtual-service-nameThe name of the virtual service to update.