From b864bf578f57e0be1dbeee59cdb12dfe5058db56 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Thu, 12 Oct 2023 10:06:08 +0000 Subject: [PATCH] Update aws_az_info.py (#1795) (#1797) [PR #1795/d7fae9dd backport][stable-6] aws_az_info - add example of filtering by state This is a backport of PR #1795 as merged into main (d7fae9d). 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 --- 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"""