in awsglue/scripts/activate_etl_connector.py [0:0]
def main():
# in case of VPC, we directly update config with proxy for glue client. Hence here we unset the environmental values
# to avoid clients for other AWS services to go through Glue's proxy. The unset is process local and will not affect
# subsequent aws cli usage.
if HTTP_PROXY in os.environ:
del os.environ[HTTP_PROXY]
if HTTPS_PROXY in os.environ:
del os.environ[HTTPS_PROXY]
if NO_PROXY in os.environ:
del os.environ[NO_PROXY]
connections, result_path, region, endpoint, proxy = parse_args(sys.argv[1:])
add_stream_handler()
res = []
for conn in connections:
logger.info(f"Start downloading connector jars for connection: {conn}")
res += download_jars_per_connection(conn, region, endpoint, proxy)
# concatenate the jar paths as a string and write it out to result_path
with open(result_path, "w") as f:
f.write(",".join(res))
logger.info(f"successfully wrote jar paths to \"{result_path}\"")