provideraws

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSecurityGroupToInstance

func AddSecurityGroupToInstance(svc *ec2.EC2, instanceId *string, securityGroupId *string)

func AttachInternetGateway

func AttachInternetGateway(svc *ec2.EC2, vpcId *string, internetGatewayId *string)

func CreateInternetGateway

func CreateInternetGateway(svc *ec2.EC2) *string

func CreateSecurityGroupForPort

func CreateSecurityGroupForPort(svc *ec2.EC2, vpcId *string, port int64) (groupId *string)

CreateSecurityGroupForPort creates a security group for a given port and returns the security group id

func CreateSecurityGroupSSH

func CreateSecurityGroupSSH(svc *ec2.EC2, vpcId *string) *string

func CreateVpcAndSubnet

func CreateVpcAndSubnet(svc *ec2.EC2) (*string, []string)

vpcId, subnetId

func DefaultRouteTable

func DefaultRouteTable(svc *ec2.EC2, vpcId *string) *string

func DescribeInstance

func DescribeInstance(instanceId string) *ec2.Instance

func GetClient

func GetClient() *ec2.EC2

func GetDefaultVpcId

func GetDefaultVpcId(svc *ec2.EC2) (vpcId *string)

func GetImages

func GetImages() ([]*ec2.Image, error)

func GetSecurityGroupByName added in v0.1.7

func GetSecurityGroupByName(svc *ec2.EC2, name string) []*ec2.SecurityGroup

func GetSecurityGroups added in v0.1.7

func GetSecurityGroups(svc *ec2.EC2, vpcId *string) []*ec2.SecurityGroup

func ImportKeyPair

func ImportKeyPair(svc *ec2.EC2, keyName string, publicKeyFile string)

func SetDefaultRouteToMainRouteTable

func SetDefaultRouteToMainRouteTable(svc *ec2.EC2, routeTableId *string, internetGatewayId *string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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