I am iterating through the running instance list returned by DescribeInstances API. I would like to know how can I retrieve the availability zone for each of these instances.
The availability zone can be accessed with:
instance.getPlacement().getAvailabilityZone();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With