How can I move EC2 instances to a different subnet?

前端 未结 4 1144
不思量自难忘°
不思量自难忘° 2021-01-31 01:57

I have a VPC set up in AWS. we have created 2 subnets (A/24 and B/24), straight using all the IP having no IP\'s/Subnets for further usage.

We find that the b/24 is not

4条回答
  •  遇见更好的自我
    2021-01-31 02:51

    You can create new instance in the target subnet, but same AZ, and then detach/reattach the EBS volumes from the original (including the root volume) to the new instance. This may result in a shorter downtime because you can create the new instance will the original is running but is a bit more complex to carry out.

提交回复
热议问题