Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SharedCredentialsFileFromSecret ¶
SharedCredentialsFileFromSecret returns a location (path) to the shared credentials file that was created using the provided secret.
Consumers can configure the aws Session using that file to use the credentials as follows:
sharedCredentialsFile, err := SharedCredentialsFileFromSecret(secret) if err != nil { // handle error } options := session.Options{ SharedConfigState: session.SharedConfigEnable, SharedConfigFiles: []string{sharedCredentialsFile}, } sess := session.Must(session.NewSessionWithOptions(options))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.