tests.system.providers.amazon.aws.utils.ec2

Module Contents

Functions

get_default_vpc_id()

Returns the VPC ID of the account's default VPC.

create_address_allocation()

Allocate a new IP address

create_nat_gateway(allocation_id, subnet_id)

Create a NAT gateway

create_route_table(vpc_id, nat_gateway_id, test_name)

Create a route table for private subnets.

create_private_subnets(vpc_id, route_table_id, test_name)

Fargate Profiles require two private subnets in two different availability zones.

delete_subnets(subnets)

delete_route_table(route_table_id)

delete_nat_gateway(nat_gateway_id)

remove_address_allocation(allocation_id)

tests.system.providers.amazon.aws.utils.ec2.get_default_vpc_id()[source]

Returns the VPC ID of the account’s default VPC.

tests.system.providers.amazon.aws.utils.ec2.create_address_allocation()[source]

Allocate a new IP address

tests.system.providers.amazon.aws.utils.ec2.create_nat_gateway(allocation_id, subnet_id)[source]

Create a NAT gateway

tests.system.providers.amazon.aws.utils.ec2.create_route_table(vpc_id, nat_gateway_id, test_name)[source]

Create a route table for private subnets.

tests.system.providers.amazon.aws.utils.ec2.create_private_subnets(vpc_id, route_table_id, test_name, number_to_make=1, cidr_block=None)[source]

Fargate Profiles require two private subnets in two different availability zones. These subnets require as well an egress route to the internet, using a NAT gateway to achieve this.

tests.system.providers.amazon.aws.utils.ec2.delete_subnets(subnets)[source]
tests.system.providers.amazon.aws.utils.ec2.delete_route_table(route_table_id)[source]
tests.system.providers.amazon.aws.utils.ec2.delete_nat_gateway(nat_gateway_id)[source]
tests.system.providers.amazon.aws.utils.ec2.remove_address_allocation(allocation_id)[source]

Was this entry helpful?