concept another availability zone in category aws

This is an excerpt from Manning's book Amazon Web Services in Action, Second Edition.
1. Data stored on network-attached storage (EBS) won’t be available after failing over to another availability zone by default. So you can end up having no access to your data (stored on EBS volumes) until the availability zone is back online (you won’t lose your data in this case).
2. You can’t start a new virtual machine in another availability zone with the same private IP address. As you’ve learned, subnets are bound to availability zones, and each subnet has a unique IP address range. By default, you can’t keep the same public IP address automatically after a recovery, as was the case in the previous section with a CloudWatch alarm triggering a recovery.
14.2.3. Recovering a failed virtual machine to another availability zone - with the help of auto-scaling
In the first part of the chapter, you used a CloudWatch alarm to trigger the recovery of a virtual machine that was running a Jenkins CI server, in case of a failure. This mechanism launches an identical copy of the original virtual machine if necessary. This is only possible in the same availability zone, because the private IP address and the EBS volume of a virtual machine are bound to a single subnet and a single availability zone. But suppose your team isn’t happy about the fact that they won’t be able to use the Jenkins server to test, build, and deploy new software in case of a unlikely availability zone outage. You begin looking for a tool that will let you recover in another availability zone.
Failing over into another availability zone is possible with the help of auto-scaling. You can find the CloudFormation template for this example on GitHub and on S3. You can download a snapshot of the repository at http://mng.bz/x6RP. The file we’re talking about is located at chapter14/multiaz.yaml. On S3, the same file is located at http://mng.bz/994D.
Execute the following command to create a virtual machine that can recover in another availability zone if necessary. Replace $Password with a password consisting of 8–40 characters. The command uses the CloudFormation template shown in listing 14.4 to set up the environment.