config

package
v0.0.0-...-1eb86f4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRegion

func DefaultRegion(auth resource.AuthProvider) (aws.Config, error)

DefaultRegion returns an AWS configuration with the default region set.

The default region is determined:

  • From AWS_DEFAULT_REGION environment variable.
  • From region in ~/.aws/credentials.
  • If neither is set, us-east-1 is used.

func WithRegion

func WithRegion(auth resource.AuthProvider, region string) (aws.Config, error)

WithRegion creates an AWS configuration with the given auth and region.

Types

This section is empty.

Jump to

Keyboard shortcuts

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