Terraform - Install egg file from S3

Murthy1
Contributor II

I am looking to install Python Egg files on all my clusters. The egg file is located in a S3 location. I tried using the following code which didn't work

 

 

 

resource "databricks_dbfs_file" "app" {
  source = "${S3_Path}/foo.egg"
  path   = "/FileStore/foo.egg"
}

resource "databricks_library" "app" {
  cluster_id = databricks_cluster.this.id
  egg        = databricks_dbfs_file.app.dbfs_path
}

 

 

 

 Can someone help me with this?

Thanks in advance!