The mesh component serves as the App Mesh foundation, and must be created first. We’ll call our mesh dj-app, and define it in the prod namespace by executing the following command from the repository’s base directory:
kubectl create -f 4_create_initial_mesh_components/mesh.yaml
You should see output similar to:
Since an App Mesh mesh is a custom resource, we can also use kubectl to view it via the get command. Running the below command:
kubectl get meshes -nprod
yields:
And similarly, as is the case for any of the custom resources we’ll be interacting with in this tutorial, you can also view AWS App Mesh resources via the AWS CLI to list meshes:
aws appmesh list-meshes
which would output:
or for example, to describe a mesh:
aws appmesh describe-mesh --mesh-name dj-app
would output: