getCredentials - AWS Code Sample