ec2 describe-availability-zones returns and empty list for any region except the current region #8362
-
Hello all. I am getting an empty list whenever I run I found this when trying to troubleshoot an identical issue in terraform when using this to get availability zones form a region: This will also return an empty list unless the filter is for the currently used region. So the filter doesn't seem to do anything helpful. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @heavyweight280, thanks for reaching out. DescribeAvailabilityZones only returns availability zones in the region of the request, and by default, only returns availability zones that are available to you. So yes, getting an empty list from a filter on other regions would be expected behavior. @github-actions proposed answer |
Beta Was this translation helpful? Give feedback.
Hi @heavyweight280, thanks for reaching out. DescribeAvailabilityZones only returns availability zones in the region of the request, and by default, only returns availability zones that are available to you. So yes, getting an empty list from a filter on other regions would be expected behavior.
@github-actions proposed answer