title: How to get AWS Availability zone in Cloud formation dynamically?
body: <p>Recently I have started exploring the AWS CloudFormation. I have one doubt to use  Fn::GetAZs to get Availability Zone dynamically ? I want the Availability Zone not to be hardcoded.
  The code in YAML format is as follows :-</p>
  <pre><code>AWSTemplateFormatVersion: 2010-09-09
  Description: Hardcoded Value of Availability zone
  Parameters: 
   MyKeyName:
    Description: Arshan Select the key Name from the boelow 
    Type: AWS::EC2::KeyPair::KeyName
   MyZone:
    Description: Select the MyAZone
    Type: String
    Default: us-east-1
    AllowedValues:
    - us-east-1
    - us-east-2
  Resources:
   DevEC2Instance:
    Type: AWS::EC2::Instance
    Properties:
     InstanceType: t2.micro
     ImageId: ami-04aa88aebb9fefd83
     KeyName: !Ref MyKeyName 
     SecurityGroup: !Ref SSHSecurityGroup
     AvailabilityZone: !Ref MyZone
   SSHSecurityGroup:
    Type: AWS::EC2::SecurityGroup 
    Properties: 
     GroupDescription: My Sg
     SecurityIngress:
      IpProtocol: tcp
      ToPort: 22
      FromPort: 22
      Cidr: 0.0.0.0/0
     SecurityEgress:
      IpProtocol: tcp 
      ToPort: 8080
      FromPort: 8080
      Cidr: 0.0.0.0/0
  </code></pre>