database

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AwsResourceName = "aws_db_instance"
View Source
const AzureMysqlResourceName = "azurerm_mysql_server"

Variables

This section is empty.

Functions

func NewAzureDatabase

func NewAzureDatabase(server AzureDbServer) []output.TfBlock

Types

type AwsDbInstance

type AwsDbInstance struct {
	*common.AwsResource `hcl:",squash" default:"name=aws_db_instance"`
	AllocatedStorage    int    `hcl:"allocated_storage"`
	Name                string `hcl:"db_name" hcle:"omitempty"`
	Engine              string `hcl:"engine"`
	EngineVersion       string `hcl:"engine_version"`
	Username            string `hcl:"username"`
	Password            string `hcl:"password"`
	InstanceClass       string `hcl:"instance_class"`
	Identifier          string `hcl:"identifier"`
	SkipFinalSnapshot   bool   `hcl:"skip_final_snapshot"`
	DbSubnetGroupName   string `hcl:"db_subnet_group_name,expr"`
	PubliclyAccessible  bool   `hcl:"publicly_accessible"`
}

aws_db_instance

type AwsDbSubnetGroup

type AwsDbSubnetGroup struct {
	*common.AwsResource `hcl:",squash" default:"name=aws_db_subnet_group"`
	Name                string   `hcl:"name"`
	Description         string   `hcl:"description"`
	SubnetIds           []string `hcl:"subnet_ids,expr"`
}

aws_db_subnet_group

func (AwsDbSubnetGroup) GetResourceName

func (dbSubGroup AwsDbSubnetGroup) GetResourceName() string

type AzureDbFirewallRule

type AzureDbFirewallRule struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_mysql_firewall_rule"`
	ServerName         string `hcl:"server_name,expr"`
	StartIpAddress     string `hcl:"start_ip_address"`
	EndIpAddress       string `hcl:"end_ip_address"`
}

type AzureDbServer

type AzureDbServer struct {
	*common.AzResource         `default:"name=azurerm_mysql_server"`
	AdministratorLogin         string
	AdministratorLoginPassword string
	SkuName                    string
	StorageMb                  int
	Version                    string
	Engine                     string
	SubnetIds                  []string
}

type AzureMySqlServer

type AzureMySqlServer struct {
	*common.AzResource           `hcl:",squash" default:"name=azurerm_mysql_server"`
	AdministratorLogin           string `hcl:"administrator_login"`
	AdministratorLoginPassword   string `hcl:"administrator_login_password"`
	SkuName                      string `hcl:"sku_name"`
	StorageMb                    int    `hcl:"storage_mb"`
	Version                      string `hcl:"version"`
	SslEnforcementEnabled        bool   `hcl:"ssl_enforcement_enabled"`
	SslMinimalTlsVersionEnforced string `hcl:"ssl_minimal_tls_version_enforced"`
}

func (AzureMySqlServer) GetServerName

func (db AzureMySqlServer) GetServerName() string

type AzureMySqlVirtualNetworkRule

type AzureMySqlVirtualNetworkRule struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_mysql_virtual_network_rule"`
	ServerName         string `hcl:"server_name,expr"`
	SubnetId           string `hcl:"subnet_id,expr"`
}

Jump to

Keyboard shortcuts

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