amazon

package
v1.3.638 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

View Source
const DefaultRegion = "us-west-2"

Variables

This section is empty.

Functions

func AvailabilityZones

func AvailabilityZones() ([]string, error)

func CreateS3Bucket

func CreateS3Bucket(bucketName string, profile string, region string) (string, error)

CreateS3Bucket creates a new S3 bucket in the default region with the given bucket name returning the location string

func GetAccountIDAndRegion

func GetAccountIDAndRegion(profile string, region string) (string, string, error)

GetAccountID returns the current account ID

func GetContainerRegistryHost

func GetContainerRegistryHost() (string, error)

GetContainerRegistryHost

func GetRegionFromContainerRegistryHost

func GetRegionFromContainerRegistryHost(dockerRegistry string) string

func LazyCreateRegistry

func LazyCreateRegistry(dockerRegistry string, orgName string, appName string) error

LazyCreateRegistry lazily creates the ECR registry if it does not already exist

func NewAwsSession

func NewAwsSession(profileOption string, regionOption string) (*session.Session, error)

func NewAwsSessionWithoutOptions

func NewAwsSessionWithoutOptions() (*session.Session, error)

func RegisterAwsCustomDomain

func RegisterAwsCustomDomain(customDomain string, elbAddress string) error

RegisterAwsCustomDomain registers a wildcard ALIAS for the custom domain to point at the given ELB host name

func ResolveRegion

func ResolveRegion(profileOption string, regionOption string) (string, error)

func ResolveRegionWithoutOptions

func ResolveRegionWithoutOptions() (string, error)

func UserHomeDir

func UserHomeDir() string

UserHomeDir returns the home directory for the user the process is running under. This is a copy of shareddefaults.UserHomeDir in the internal AWS package. We can't user user.Current().HomeDir as we want to override this during testing. :-|

Types

This section is empty.

Jump to

Keyboard shortcuts

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