snowplow-devops / terraform-provider-redash

Terraform Provider for Redash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to add cassandra datasources on redash >= v10

leandro-lorenzini opened this issue · comments

Redash expects a required "useSsl" attribute when adding a cassandra datasource, however the provider only allows use_ssl which is not a valid option for redash >= v10 cassandra datasource.

redashConversion := map[string]string{
		"connection_string":                  "connectionString",
		"db_name":                            "dbName",
		"json_key_file":                      "jsonKeyFile",
		"load_schema":                        "loadSchema",
		"maximum_billing_tier":               "maximumBillingTier",
		"project_id":                         "projectId",
		"replica_set_name":                   "replicaSetName",
		"total_mbytes_processed_limit":       "totalMBytesProcessedLimit",
		"use_standard_sql":                   "useStandardSql",
		"user_defined_function_resource_uri": "userDefinedFunctionResourceUri",
		"use_ssl": 		    	      "useSsl",  #MAYBE ADD THIS?
	}

	terraformConversion := map[string]string{
		"connectionString":               "connection_string",
		"dbName":                         "db_name",
		"jsonKeyFile":                    "json_key_file",
		"loadSchema":                     "load_schema",
		"maximumBillingTier":             "maximum_billing_tier",
		"projectId":                      "project_id",
		"replicaSetName":                 "replica_set_name",
		"totalMBytesProcessedLimit":      "total_mbytes_processed_limit",
		"useStandardSql":                 "use_standard_sql",
		"userDefinedFunctionResourceUri": "user_defined_function_resource_uri",
		"useSsl": 			  "use_ssl", #MAYBE ADD THIS?
	}