I want to create multi-AZ Apsara DB instance using terraform and for this I referred below URLs but it didn't work. It created DB instance only in 1 AZ.
https://www.terraform.io/docs/providers/alicloud/r/db_instance.html
https://www.terraform.io/docs/providers/alicloud/d/zones.html
If anyone knows then please help me.
Regards,
Chintu
First you need to get the availability_zone which supports multizone. You can get it in data from:
After that all you need to do is to use that found multizone ID. As:
You may also wanna look into your xt.txt file created to see the structure of the data created by def_zone.