rds

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLatestSnapshotId

func GetLatestSnapshotId(instance string, log *zerolog.Logger) (string, error)

GetLatestSnapshotId restore a given snapshot to a given instnace namd

func GetSubnetGroup

func GetSubnetGroup(instance string, log *zerolog.Logger) (string, error)

GetSubnetGroup Given and instance ID, return the subnet group id

func GetVPCSecurityGroups

func GetVPCSecurityGroups(instance string, log *zerolog.Logger) ([]string, error)

GetVPCSecurityGroups Given and instance ID, return the security groups

Types

type RestoreSnapshotIdInput

type RestoreSnapshotIdInput struct {
	// DBInstanceIdentifier: name of the instance created form the snapshot
	DBInstanceIdentifier string
	// DBSnapshotIdentifier: Snapshot ID to restore
	DBSnapshotIdentifier string
	// DBSubnetGroupName: Subnet group for the restored database
	DBSubnetGroupName   string
	VpcSecurityGroupIds []string
	Tags                []Tag
}

type RestoreSnapshotIdOutput

type RestoreSnapshotIdOutput struct {
	DBInstanceIdentifier string
}

func RestorePGSnapshotId

func RestorePGSnapshotId(input RestoreSnapshotIdInput, log *zerolog.Logger) (RestoreSnapshotIdOutput, error)

RestorePGSnapshotId Restore a snapshot to a enw RDS postgres instance

type Tag

type Tag struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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