Added endpoint and region settings for s3 configuration