aws

package
v0.0.0-...-0b4836d Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

README

To test AWS

You will first need to create an AWS instance and then provide details of this instance as below.

export AWS_REGION=<instance-region>
export AWS_ZONE=<aws-availibility-zone>
export AWS_INSTANCE_NAME=<aws-instance-name>
export AWS_ACCESS_KEY_ID=<access-id>
export AWS_SECRET_ACCESS_KEY=<access-secret>
export AWS_INSTANCE_TYPE=<aws-instance-type>
go test

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAWSEnvNotAvailable is the error type when aws credentials are not set
	ErrAWSEnvNotAvailable = fmt.Errorf("AWS credentials are not set in environment")
)

Functions

func DescribeInstanceByID

func DescribeInstanceByID(service *ec2.EC2, id string) (*ec2.Instance, error)

DescribeInstanceByID describes the given instance by instance ID

func NewClient

func NewClient() (cloudops.Ops, error)

NewClient creates a new cloud operations client for AWS

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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