Documentation ¶
Overview ¶
Package aws_session provides a few small functions for creating an AWS SDK Session object. I find these hard to remember if it's been a while, so I created this small package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create makes an attempt to use the profile and/or the environment variables. If AWS_SDK_LOAD_CONFIG it will use the profile. If all of AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_REGION then these will be used. If neither of those conditions is met, then AWS_SDK_LOAD_CONFIG will be set to true and the profile will be attempted.
func CreateUsingEnvironment ¶
CreateUsingEvironment uses the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY to create the Session.
func CreateUsingProfile ¶
CreateUsingProfile sets AWS_SDK_LOAD_CONFIG to true and tries to use the profile.
Types ¶
This section is empty.