switch amazon key and secret to environment variables