Documentation ¶
Index ¶
- func AddSecurityGroupToInstance(svc *ec2.EC2, instanceId *string, securityGroupId *string)
- func AttachInternetGateway(svc *ec2.EC2, vpcId *string, internetGatewayId *string)
- func CreateInternetGateway(svc *ec2.EC2) *string
- func CreateSecurityGroupForPort(svc *ec2.EC2, vpcId *string, port int64) (groupId *string)
- func CreateSecurityGroupSSH(svc *ec2.EC2, vpcId *string) *string
- func CreateVpcAndSubnet(svc *ec2.EC2) (*string, []string)
- func DefaultRouteTable(svc *ec2.EC2, vpcId *string) *string
- func DescribeInstance(instanceId string) *ec2.Instance
- func GetClient() *ec2.EC2
- func GetDefaultVpcId(svc *ec2.EC2) (vpcId *string)
- func GetImages() ([]*ec2.Image, error)
- func GetSecurityGroupByName(svc *ec2.EC2, name string) []*ec2.SecurityGroup
- func GetSecurityGroups(svc *ec2.EC2, vpcId *string) []*ec2.SecurityGroup
- func ImportKeyPair(svc *ec2.EC2, keyName string, publicKeyFile string)
- func SetDefaultRouteToMainRouteTable(svc *ec2.EC2, routeTableId *string, internetGatewayId *string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachInternetGateway ¶
func CreateInternetGateway ¶
func CreateSecurityGroupForPort ¶
CreateSecurityGroupForPort creates a security group for a given port and returns the security group id
func DescribeInstance ¶
func GetDefaultVpcId ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.