updating aws credentials to allow a proc to be passed