aws

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(client kubernetes.Interface, p *v1alpha1.Provider) (*aws.Config, error)

Config - crate AWS Config based on credentials data using [default] profile

func ConfigFromFile

func ConfigFromFile(file, region string) (*aws.Config, error)

ConfigFromFile - create AWS Config based on credential file using [default] profile

func CredentialsIDSecret

func CredentialsIDSecret(data []byte, profile string) (string, string, error)

CredentialsIDSecret retrieves AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from the data which contains aws credentials under given profile Example: [default] aws_access_key_id = <YOUR_ACCESS_KEY_ID> aws_secret_access_key = <YOUR_SECRET_ACCESS_KEY>

func LoadConfig

func LoadConfig(data []byte, profile, region string) (*aws.Config, error)

LoadConfig - AWS configuration which can be used to issue requests against AWS API

func ValidateConfig

func ValidateConfig(config *aws.Config) error

ValidateConfig - validates AWS configuration by issuing list s3 buckets request TODO: find a better way to validate credentials

Types

This section is empty.

Directories

Path Synopsis
eks
rds

Jump to

Keyboard shortcuts

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