Set Permissions

Next, we’ll setup the workers to have the correct permissions to run App Mesh API calls.

Copy and paste the below code to add the permissions as an inline policy to your worker node instances:

Setup Permissions for the Worker Nodes

If you are performing these steps during a Workshop at an AWS event, the steps have already been completed, and you may continue to the next step below of verifying the policy is attached to the role.

cat <<EoF > k8s-appmesh-worker-policy.json
  "Version": "2012-10-17",
  "Statement": [
      "Effect": "Allow",
      "Action": [
      "Resource": "*"

aws iam put-role-policy --role-name $ROLE_NAME --policy-name AM-Policy-For-Worker --policy-document file://k8s-appmesh-worker-policy.json

To verify the policy was attached to the role, run the following command:

aws iam get-role-policy --role-name $ROLE_NAME --policy-name AM-Policy-For-Worker