CmdID / aws / aws appmesh
aws appmesh create-mesh
Creates a service mesh. AWS CLI reference
2 examples 4 options Its page in the AWS CLI reference
Examples
Example 1: To create a new service mesh
The following create-mesh example creates a service mesh.
aws appmesh create-mesh --mesh-name app1Identify--mesh-nameThe name to use for the service mesh.Its output
{
"mesh":{
"meshName":"app1",
"metadata":{
"arn":"arn:aws:appmesh:us-west-2:123456789012:mesh/app1",
"createdAt":1563809909.282,
"lastUpdatedAt":1563809909.282,
"uid":"a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"version":1
},
"spec":{},
"status":{
"status":"ACTIVE"
}
}
}Example 2: To create a new service mesh with multiple tags
The following create-mesh example creates a service mesh with multiple tags.
aws appmesh create-mesh --mesh-name app2 --tags key=key1,value=value1 key=key2,value=value2 key=key3,value=value3Identify--mesh-nameThe name to use for the service mesh.--tagsOptional metadata that you can apply to the service mesh to assist with categorization and organization.Its output
{
"mesh":{
"meshName":"app2",
"metadata":{
"arn":"arn:aws:appmesh:us-west-2:123456789012:mesh/app2",
"createdAt":1563822121.877,
"lastUpdatedAt":1563822121.877,
"uid":"a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"version":1
},
"spec":{},
"status":{
"status":"ACTIVE"
}
}
}For more information, see Service Meshes in the AWS App Mesh User Guide.
Options
--client-tokenUnique, case-sensitive identifier that you provide to ensure the idempotency of the request.--mesh-nameThe name to use for the service mesh.--specThe service mesh specification to apply.--tagsOptional metadata that you can apply to the service mesh to assist with categorization and organization.