Instead of falling back to using SharedCredentials with "default" set, fall back to the default behavior, which should have similar results but allows the use of things like temporary credentials in environment variables. This also simplifies the code since instead of passing around credentials objects everywhere, it's just set on the AWS object itself.
Instead of falling back to using SharedCredentials with "default" set, fall back to the default behavior, which should have similar results but allows the use of things like temporary credentials in environment variables. This also simplifies the code since instead of passing around credentials objects everywhere, it's just set on the AWS object itself.