• Allocates CIDR blocks for subnets within a region, ensuring no overlaps.

    Parameters

    • accountName: string

      The account name

    • regionName: string

      The region name

    • regionCidr: string

      The CIDR for the region

    • baseCidr: string

      The base CIDR for the VPC

    • azNames: string[]

      The availability zone names

    • azCidrs: string[]

      The CIDRs for each availability zone

    • subnetTypes: SubnetType[]

      The subnet types and their prefix lengths

    • cidrTracker: CidrTracker

      A tracker for allocated CIDRs

    • provider: string

      Cloud provider name

    Returns Allocation[]

    An array of subnet allocations