aws

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package aws 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, stsOutput *sts.GetCallerIdentityOutput, awsCredsPath string, err error)

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

Types

type AMI added in v0.6.3

type AMI struct {
	ARN              string    `json:"arn"`
	Name             string    `json:"name"`
	Version          int64     `json:"version"`
	LastModifiedDate time.Time `json:"last-modified-date"`
	SchemaVersion    string    `json:"schema_version,omitempty"`
	ImageID          string    `json:"image_id,omitempty"`
	ImageName        string    `json:"image_name,omitempty"`
}

AMI represents AMI.

func FetchAMI added in v0.6.3

func FetchAMI(sa ssmiface.SSMAPI, key string) (*AMI, error)

FetchAMI gets AMI from the SSM parameter key. Automated "aws ssm get-parameter --name ...".

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

	// Partition is an AWS partition (default "aws").
	Partition string
	// Region is a separate AWS geographic area for EKS service.
	// Each AWS Region has multiple, isolated locations known as Availability Zones.
	Region string

	// ResolverURL is a custom resolver URL.
	ResolverURL string
	// SigningName is the API signing name.
	SigningName string
}

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

Directories

Path Synopsis
Package cfn implements common CloudFormation utilities.
Package cfn implements common CloudFormation utilities.
Package cw implements common CloudWatch utilities.
Package cw implements common CloudWatch utilities.
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.
Package ecr implements ECR utilities.
Package ecr implements ECR utilities.
Package elb implements ELB utilities.
Package elb implements ELB utilities.
Package iam implements various IAM components.
Package iam implements various IAM components.
Package ssm implements common SSM utilities.
Package ssm implements common SSM utilities.

Jump to

Keyboard shortcuts

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