awsapi

package
v0.0.1-lastknown Latest Latest
Warning

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

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

Documentation

Overview

Package awsapi implements wrappers for AWS API calls.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *Config) (ss *session.Session, awsCredsPath string, err error)

New creates a new AWS session. Specify a custom endpoint for tests.

Types

type Config

type Config struct {
	// Logger is the log object.
	Logger *zap.Logger

	// DebugAPICalls is true to log all AWS API call debugging messages.
	DebugAPICalls bool

	// Region is a separate AWS geographic area for EKS service.
	// Each AWS Region has multiple, isolated locations known as Availability Zones.
	Region string

	// CustomEndpoint is a custom endpoint for pre-release versions of the service.
	// TODO: support EKS testing endpoint
	// https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#custom-endpoint
	CustomEndpoint string
}

Config defines a top-level AWS API configuration to create a session.

Directories

Path Synopsis
ec2
Package ec2 implements various AWS EC2 operations.
Package ec2 implements various AWS EC2 operations.
instance-types
instance-types auto-generates EC2 instance types from AWS API.
instance-types auto-generates EC2 instance types from AWS API.
metadata
Package metadata queries the EC2 metadata.
Package metadata queries the EC2 metadata.

Jump to

Keyboard shortcuts

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