In salt states, we use "grains.host" to get the host details. How do we get the AWS EC2 availability zone name using salt grains?

In salt states, we use "grains.host" to get the host details. How do we get the AWS EC2 availability zone name using salt grains?

To get the hostname I give the below:

{%- if 'aws-dev-01' in grains.host %}
{%- set device = '.....' %}

To get the EC2 AZ name, are the below lines correct?

{%- if 'aws-dev-01' in grains.availability_zone %}
{%- set device = '.....' %}
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum