virtual_machine

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AwsKeyPairResourceName = "aws_key_pair"
View Source
const AwsResourceName = "aws_instance"
View Source
const AzureResourceName = "azurerm_linux_virtual_machine"

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsEC2

type AwsEC2 struct {
	*common.AwsResource      `hcl:",squash"  default:"name=aws_instance"`
	Ami                      string                   `hcl:"ami"`
	InstanceType             string                   `hcl:"instance_type"`
	AssociatePublicIpAddress bool                     `hcl:"associate_public_ip_address" hcle:"omitempty"`
	SubnetId                 string                   `hcl:"subnet_id,expr" hcle:"omitempty"`
	UserDataBase64           string                   `hcl:"user_data_base64" hcle:"omitempty"`
	NetworkInterfaces        []AwsEc2NetworkInterface `hcl:"network_interface,blocks" hcle:"omitempty"`
	SecurityGroupIds         []string                 `hcl:"vpc_security_group_ids,expr" hcle:"omitempty"`
	KeyName                  string                   `hcl:"key_name,expr" hcle:"omitempty"`
	IamInstanceProfile       string                   `hcl:"iam_instance_profile,expr" hcle:"omitempty"`
}

type AwsEc2NetworkInterface

type AwsEc2NetworkInterface struct {
	NetworkInterfaceId string `hcl:"network_interface_id,expr"`
	DeviceIndex        int    `hcl:"device_index"`
}

type AwsKeyPair

type AwsKeyPair struct {
	*common.AwsResource `hcl:",squash"  default:"name=aws_key_pair"`
	KeyName             string `hcl:"key_name"`
	PublicKey           string `hcl:"public_key"`
}

type AzureAdminSshKey

type AzureAdminSshKey struct {
	Username  string `hcl:"username"`
	PublicKey string `hcl:"public_key"`
}

type AzureIdentity

type AzureIdentity struct {
	Type string `hcl:"type"`
}

type AzureOsDisk

type AzureOsDisk struct {
	Caching            string `hcl:"caching"`
	StorageAccountType string `hcl:"storage_account_type"`
}

type AzureSourceImageReference

type AzureSourceImageReference struct {
	Publisher string `hcl:"publisher"`
	Offer     string `hcl:"offer"`
	Sku       string `hcl:"sku"`
	Version   string `hcl:"version"`
}

type AzureVirtualMachine

type AzureVirtualMachine struct {
	*common.AzResource            `hcl:",squash" default:"name=azurerm_linux_virtual_machine"`
	Location                      string                    `hcl:"location"`
	Size                          string                    `hcl:"size"`
	NetworkInterfaceIds           []string                  `hcl:"network_interface_ids,expr"`
	CustomData                    string                    `hcl:"custom_data" hcle:"omitempty"`
	OsDisk                        AzureOsDisk               `hcl:"os_disk"`
	AdminUsername                 string                    `hcl:"admin_username"`
	AdminPassword                 string                    `hcl:"admin_password,expr" hcle:"omitempty"`
	AdminSshKey                   AzureAdminSshKey          `hcl:"admin_ssh_key" hcle:"omitempty"`
	SourceImageReference          AzureSourceImageReference `hcl:"source_image_reference"`
	DisablePasswordAuthentication bool                      `hcl:"disable_password_authentication"`
	Identity                      AzureIdentity             `hcl:"identity"`
	ComputerName                  string                    `hcl:"computer_name"`
}

Jump to

Keyboard shortcuts

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