virtual_network

package
v0.1.57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const AwsInternetGatewayName = "aws_internet_gateway"
View Source
const AwsResourceName = "aws_vpc"
View Source
const AzureResourceName = "azurerm_virtual_network"
View Source
const GcpResourceName = "google_compute_network"

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsInternetGateway

type AwsInternetGateway struct {
	*common.AwsResource `hcl:",squash"  default:"name=aws_internet_gateway"`
	VpcId               string `hcl:"vpc_id,expr"`
}

AwsInternetGateway : by default, Internet Gateway is associated with VPC

func (*AwsInternetGateway) GetId

func (igw *AwsInternetGateway) GetId() string

type AwsVpc

type AwsVpc struct {
	*common.AwsResource `hcl:",squash"  default:"name=aws_vpc"`
	CidrBlock           string `hcl:"cidr_block" json:"cidr_block,omitempty"`
	EnableDnsHostnames  bool   `hcl:"enable_dns_hostnames" json:"enable_dns_hostnames,omitempty"` // needed for publicly accessible rds
}

func (*AwsVpc) GetDefaultRouteTableId

func (vpc *AwsVpc) GetDefaultRouteTableId() string

type AzureVnet

type AzureVnet struct {
	*common.AzResource `hcl:",squash"  default:"name=azurerm_virtual_network"`
	AddressSpace       []string `hcl:"address_space" json:"address_space"`
}

type GoogleComputeNetwork added in v0.1.46

type GoogleComputeNetwork struct {
	*common.GcpResource         `hcl:",squash"  default:"name=google_compute_network"`
	RoutingMode                 string `hcl:"routing_mode"` // REGIONAL
	Description                 string `hcl:"description"`
	AutoCreateSubnetworks       bool   `hcl:"auto_create_subnetworks"`
	DeleteDefaultRoutesOnCreate bool   `hcl:"delete_default_routes_on_create"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL