Issue:
When trying to connect to AWS Glue, the configuration states that
Glue requires no further configuration. We will let boto3 handle the connection configuration.
Added source: <name> to ~/.whale/config/connections.yaml.
This is an issue, since the organization I work at uses cross accounts, thus, requiring me to swap out profiles when trying to access resources. Currently, I am unable to specify which profile to use in order to extract data and it ends up using the default aws credentials, which does not have access to the aws glue catalog.
Possible Solution:
This could be remedied by asking the user to specify the aws config to use and then make modifications to the class constructor of GlueExtractor.py.
Something along the lines of:
DEFAULT_CONFIG = ConfigFactory.from_dict(
{
FILTER_KEY: None,
IS_LOCATION_PARSING_ENABLED_KEY: False,
CONNECTION_NAME_KEY: None,
AWS_PROFILE: "default"
}
)
def init(self, conf: ConfigTree) -> None:
# Lines skipped for readability....
conf = conf.with_fallback(GlueExtractor.DEFAULT_CONFIG)
self._aws_profile = conf.get(GlueExtractor.AWS_PROFILE)
session = boto3.Session(profile_name=self._aws_profile)
self._glue = session.client("glue")
Let me know if you would like me to try and make a PR with the suggested changes or whether you have another idea on how to resolve this.
Issue:
When trying to connect to AWS Glue, the configuration states that
This is an issue, since the organization I work at uses cross accounts, thus, requiring me to swap out profiles when trying to access resources. Currently, I am unable to specify which profile to use in order to extract data and it ends up using the
defaultaws credentials, which does not have access to the aws glue catalog.Possible Solution:
This could be remedied by asking the user to specify the aws config to use and then make modifications to the class constructor of GlueExtractor.py.
Something along the lines of:
Let me know if you would like me to try and make a PR with the suggested changes or whether you have another idea on how to resolve this.