mattclay.aws.ec2_az_vpc_route_tables_subnets (4.0.1) — filter

generate a list of subnets from availability zones

Authors: unknown

Install collection

Install with ansible-galaxy collection install mattclay.aws:==4.0.1


Add to requirements.yml

  collections:
    - name: mattclay.aws
      version: 4.0.1

Description

Use the input zones dictionary and provided subnet format string to build a list of subnets.

Inputs

    
_input:
    description: A dictionary of availability zones. The key is the zone name. The value
      is unused.
    required: true
    type: dict

subnet:
    description: The subnet format string. The placeholder will be replaced with a number
      representing the availability zone, with ``a`` being ``0``.
    required: true
    type: str

Outputs

_value:
  description: A list of subnets.
  elements: str
  type: list