ecs_composex.vpc package

Submodules

ecs_composex.vpc.aws_mappings module

Generic mappings for well-known AWS Settings not yet in SSM

ecs_composex.vpc.cli module

ecs_composex.vpc.vpc_aws module

ecs_composex.vpc.vpc_conditions module

ecs_composex.vpc.vpc_maths module

3 Layers subnets calculator for 3-tier VPC

ecs_composex.vpc.vpc_maths.clpow2(x)[source]

Function to return the closest power of two from given x

Parameters

x – Number to look the closest power of two for

Returns

int() closest power of two

ecs_composex.vpc.vpc_maths.cut_per_az(az_cidr, layers_cidr)[source]

Subdivide the range per AZ in the region

Parameters
  • az_cidr – CIDR to split

  • layers_cidr – dict() getting updated with layers

Returns

NIL

ecs_composex.vpc.vpc_maths.get_subnet_layers(cidr, azs)[source]

Get Subnets layers based on number of AZs

ecs_composex.vpc.vpc_maths.get_subnets(cidr, azs)[source]

Get the lists of Subnets CIDRs

ecs_composex.vpc.vpc_maths.nxtpow2(x)[source]

Function to find the next power of two from given x number

Parameters

x – number to look for the next power of two

Returns

next power of two number

ecs_composex.vpc.vpc_params module

ecs_composex.vpc.vpc_stack module

ecs_composex.vpc.vpc_subnets module

ecs_composex.vpc.vpc_template module

Module contents