From 4d980bf50f877a8b1cde76c17a414344fbb6f4dc Mon Sep 17 00:00:00 2001 From: Aditya Putta Date: Thu, 12 Oct 2023 04:21:49 -0500 Subject: [PATCH] Update aws_az_info.py (#1795) aws_az_info - add example of filtering by state SUMMARY You can filter availability zones based on their state, such as "available," "unavailable," or "modifying." ISSUE TYPE Docs Pull Request COMPONENT NAME amazon.aws.aws_az_info: Reviewed-by: Mark Chappell (cherry picked from commit d7fae9dda8c51ab0e2ae17adf1faf81838bfeee5) --- plugins/modules/aws_az_info.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/modules/aws_az_info.py b/plugins/modules/aws_az_info.py index 631f39717fa..6f15d82ffca 100644 --- a/plugins/modules/aws_az_info.py +++ b/plugins/modules/aws_az_info.py @@ -39,6 +39,12 @@ amazon.aws.aws_az_info: filters: zone-name: eu-west-1a + +- name: Gather information in a availability zones based on their state, such as "available" + amazon.aws.aws_az_info: + region: us-east-1 + filters: + state: available """ RETURN = r"""