Reputation: 1
I am passing my code this way in the main.tf where am creating the private datafusion instance.
# CDAP namespace block
data "google_client_config" "current" {}
provider "cdap" {
host = google_data_fusion_instance.instance.api_endpoint
token = data.google_client_config.current.access_token
}
resource "cdap_namespace" "namespace" {
name = var.cdap_name
}
resource "cdap_namespace_preferences" "preferences" {
namespace = cdap_namespace.namespace.name
preferences = var.cdap_preferences
}
While the pipeline is running, it is getting failed when it is trying to create a namespace "Error 401 Unauthorised"
PS: Using service account to create the datafusion instance have got the datafusion.admin roles applied. Do u think we need to add more roles? or Is it the way am passing the access token?
..........................
Upvotes: 0
Views: 260