Documentation
¶
Index ¶
- func AddSecurityGroupToInstance(svc *ec2.Client, instanceId *string, securityGroupId *string)
- func AttachInternetGateway(svc *ec2.Client, vpcId *string, internetGatewayId *string)
- func CreateInternetGateway(svc *ec2.Client) *string
- func CreateSecurityGroupForPort(svc *ec2.Client, vpcId *string, port int64) (groupId *string)
- func CreateSecurityGroupSSH(svc *ec2.Client, vpcId *string) *string
- func CreateVpcAndSubnet(svc *ec2.Client) (*string, []string)
- func DefaultRouteTable(svc *ec2.Client, vpcId *string) *string
- func DescribeInstance(instanceId string) types.Instance
- func GetClient() *ec2.Client
- func GetDefaultVpcId(svc *ec2.Client) (vpcId *string)
- func GetImages() ([]types.Image, error)
- func GetSecurityGroupByName(svc *ec2.Client, name string) []types.SecurityGroup
- func GetSecurityGroups(svc *ec2.Client, vpcId *string) []types.SecurityGroup
- func ImportKeyPair(svc *ec2.Client, keyName string, publicKeyFile string)
- func SetDefaultRouteToMainRouteTable(svc *ec2.Client, 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 CreateVpcAndSubnet ¶
vpcId, subnetId
func DescribeInstance ¶
func GetDefaultVpcId ¶
func GetSecurityGroupByName ¶ added in v0.1.7
func GetSecurityGroupByName(svc *ec2.Client, name string) []types.SecurityGroup
func GetSecurityGroups ¶ added in v0.1.7
func GetSecurityGroups(svc *ec2.Client, vpcId *string) []types.SecurityGroup
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.