aws

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAWSSessionWithCredsInEnv

func CreateAWSSessionWithCredsInEnv(region string, roleARN string, accessKey *corev1.SecretKeySelector, secretKey *corev1.SecretKeySelector) (*session.Session, error)

CreateAWSSessionWithCredsInEnv based on credentials in ENV, return a aws session

func CreateAWSSessionWithCredsInVolume added in v1.0.0

func CreateAWSSessionWithCredsInVolume(region string, roleARN string, accessKey *corev1.SecretKeySelector, secretKey *corev1.SecretKeySelector) (*session.Session, error)

CreateAWSSessionWithCredsInVolume based on credentials in mounted volumes, return a aws session

func GetAWSAssumeRoleCreds

func GetAWSAssumeRoleCreds(roleARN, region string) (*session.Session, error)

func GetAWSCredFromEnvironment

func GetAWSCredFromEnvironment(access *corev1.SecretKeySelector, secret *corev1.SecretKeySelector) (*credentials.Credentials, error)

GetAWSCredFromEnvironment reads credential stored in ENV by using envFrom.

func GetAWSCredFromVolume added in v1.0.0

func GetAWSCredFromVolume(access *corev1.SecretKeySelector, secret *corev1.SecretKeySelector) (*credentials.Credentials, error)

GetAWSCredFromVolume reads credential stored in mounted secret volume.

func GetAWSSession

func GetAWSSession(creds *credentials.Credentials, region string) (*session.Session, error)

func GetAWSSessionWithoutCreds

func GetAWSSessionWithoutCreds(region string) (*session.Session, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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