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
질문됨 일 년 전262회 조회
2개 답변
2
수락된 답변

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
전문가
답변함 일 년 전
profile picture
전문가
검토됨 2달 전
-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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠