potiuk commented on a change in pull request #20226:
URL: https://github.com/apache/airflow/pull/20226#discussion_r767987307
##########
File path: airflow/providers/amazon/aws/hooks/base_aws.py
##########
@@ -128,18 +128,28 @@ def _create_session_with_assume_role(self,
session_kwargs: Dict[str, Any]) -> bo
)
session = botocore.session.get_session()
session._credentials = credentials
- region_name = self.basic_session.region_name
- session.set_config_variable("region", region_name)
+ if self.basic_session is not None:
+ region_name = self.basic_session.region_name
+ session.set_config_variable("region", region_name)
Review comment:
Yeah. looked at the code and the basic_session **SHOULD** be there.
--
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]