0

It seems that specifying a JDBC_DRIVER_JAR_URI connection property when defining an aws glue connection in terraform does nothing. When I test the glue connection, the cloudwatch logs show that glue is still using version 9.4 JDBC driver or postgres

resource "aws_glue_connection" "glue_connection_2" {
  connection_properties = {
    JDBC_DRIVER_JAR_URI = "s3://scripts/postgresql.jar"
    JDBC_CONNECTION_URL = var.jdbc_connection_url
    JDBC_ENGINE_VERSION = "14"
    PASSWORD            = var.glue_db_password
    USERNAME            = var.glue_db_user_name
  }

  name            = "${local.glue_connection_name}-custom"
  connection_type = "JDBC"
  physical_connection_requirements {
    availability_zone      = var.database_availability_zone
    security_group_id_list = var.security_group_id_list
    subnet_id              = sort(data.aws_subnets.vpc_subnets.ids)[0]
  }
}

Is it possible to specify a custom jar for aws glue connections other than creating a custom connector for it?

0 Answers0