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
posta un anno fa262 visualizzazioni
2 Risposte
2
Risposta accettata

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
ESPERTO
con risposta un anno fa
profile picture
ESPERTO
verificato 2 mesi fa
-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
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande