If the AWS API key and secret which you use and and are stored in ~/.aws/credentials in
a profile called default then you don't need to set the SOURCE_PROFILE_NAME in the code.
If the profile name in ~/.aws/credentials is something other than default then set
SOURCE_PROFILE_NAME to that name. For example if your ~/.aws/credentials looked like this