dimon222 commented on a change in pull request #19725:
URL: https://github.com/apache/airflow/pull/19725#discussion_r755414129



##########
File path: airflow/providers/amazon/aws/hooks/s3.py
##########
@@ -173,7 +173,8 @@ def get_bucket(self, bucket_name: Optional[str] = None) -> 
str:
         :return: the bucket object to the bucket name.
         :rtype: boto3.S3.Bucket
         """
-        s3_resource = self.get_resource_type('s3')
+        session, endpoint_url = self._get_credentials()
+        s3_resource = session.client('s3', endpoint_url=endpoint_url, 
config=self.config, verify=self.verify)

Review comment:
       This might be potentially adjusted to use out of the box default outputs 
of `self.get_resource_type()` but i'm not 100% certain of value of 
`self.resource_type` to verify. I could only guess that its `s3`...




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to