Scoping of EC2 Instances

0

Are EC2 instances scoped at AZ level or regional levle? If it is at EZ level where can I change my the AZ to an EC2? (I am aware that an existing instance can not be moved to a different AZ.) But I was unable to find a section where I can set the AZ to a new EC2 instance during deployment.

profile picture
asked a year ago249 views
2 Answers
2
Accepted Answer

EC2 instances are launched (so: created) and linked to subnets which are themselves assigned to an AZ. This is also true of EC2-attached services such as EBS and network interfaces (ENI). So during deployment you choose the subnet which selects the AZ for you.

For those reading along: You can't move an EC2 instance to a new AZ because it is (as you say) "scoped" to the AZ where it was originally launched. You can create a snapshot of the instance; create an AMI from that snapshot and then launch the AMI in another AZ - noting that it will then have new EBS volumes and a new ENI.

profile pictureAWS
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a month ago
-1

U can set the AZ to a new EC2 instance during deployment by selecting the VPC and Subnet in which AZ you want to launch the instance.

you should have subnets created in multiple Availability Zones, so that while creating EC2 instance you select the subnet according to your AZ which u want your EC2 instance to be placed.

EC2 instance will be placed in particular AZ based on the subnet u select.

AWSuser
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions