16

I created two subnets without any preference of the availability zone(AZ). So, now I have two subnets in one AZ. I know that I can extend the VPC and create new subnets but I simply want to move a subnet into a different zone. Is there any way I can move a subnet to a different AZ on AWS?

bot
  • 1,293
  • 3
  • 17
  • 34

1 Answers1

26

This is not possible.

An Availability Zone is nominated when the Subnet is created. It is not possible to change the AZ on a Subnet.

You should either create another subnet, or delete the subnet and recreate it in a different AZ.

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
  • If you delete and recreate it inthe new AZ, can you recreate it with the same CIDR range that the deleted one? – рüффп Mar 17 '23 at 16:56
  • @рüффп Yes, once a subnet is deleted, the CIDR can be used for another subnet. Of course, all resources must be deleted from the subnet before the subnet itself can be deleted. – John Rotenstein Mar 17 '23 at 21:46