Documentation ¶
Index ¶
- func Config(client kubernetes.Interface, p *v1alpha1.Provider) (*aws.Config, error)
- func ConfigFromFile(file, region string) (*aws.Config, error)
- func CredentialsIDSecret(data []byte, profile string) (string, string, error)
- func LoadConfig(data []byte, profile, region string) (*aws.Config, error)
- func ValidateConfig(config *aws.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFromFile ¶
ConfigFromFile - create AWS Config based on credential file using [default] profile
func CredentialsIDSecret ¶
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 ¶
LoadConfig - AWS configuration which can be used to issue requests against AWS API
func ValidateConfig ¶
ValidateConfig - validates AWS configuration by issuing list s3 buckets request TODO: find a better way to validate credentials
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.