tests.system.amazon.aws.utils.ec2
¶
Module Contents¶
Functions¶
Returns the VPC ID of the account's default VPC. |
|
Allocate a new IP address |
|
|
Create a NAT gateway |
|
Create a route table for private subnets. |
|
Fargate Profiles require two private subnets in two different availability zones. |
|
|
|
|
|
|
|
- tests.system.amazon.aws.utils.ec2.get_default_vpc_id()[source]¶
Returns the VPC ID of the account’s default VPC.
- tests.system.amazon.aws.utils.ec2.create_nat_gateway(allocation_id, subnet_id)[source]¶
Create a NAT gateway
- tests.system.amazon.aws.utils.ec2.create_route_table(vpc_id, nat_gateway_id, test_name)[source]¶
Create a route table for private subnets.
- tests.system.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.