aws_test

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachVol

func AttachVol(ec2Instance *ec2.EC2, instance_id, vol_id string)

Function to attach a EBS volume to the EC2 instance

func CreateEBSVolume

func CreateEBSVolume(ec2Instance *ec2.EC2, size int64, az, volType string)

Function to Create AWS EBS Volume

func CreateEFS

func CreateEFS(efsInstance *efs.EFS, fsname string)

Create a FS with the given name

func CreateEFSSession

func CreateEFSSession(region, ak, sk string) *efs.EFS

func CreateSession

func CreateSession(region, ak, sk string) *ec2.EC2

Create session with IAM AK-SK and the region

func DeleteEBSVolume

func DeleteEBSVolume(ec2Instance *ec2.EC2, vol_id string)

Function to Delete AWS EBS Volume

func DeleteEFS

func DeleteEFS(efsInstance *efs.EFS, fsid string)

Delete a EFS with the ID

func DescribeInstance

func DescribeInstance(ec2Instance *ec2.EC2)

Function to get the details of all instances of AWS EC2

func Start_stop_instances

func Start_stop_instances(ec2Instance *ec2.EC2, instance_id string, op_name string)

Function to stop or start Instances of EC2

Types

This section is empty.

Jump to

Keyboard shortcuts

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