-
Notifications
You must be signed in to change notification settings - Fork 0
fix: make defining permissions optional #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ub.com/data-platform-hq/terraform-databricks-external-location into fix/make-defining-permissions-optional
variables.tf
Outdated
description = "Cloud (azure, aws or gcp)" | ||
} | ||
|
||
variable "create_storage_credential" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move it to "storage_credential" block as a parameter
main.tf
Outdated
} | ||
|
||
resource "databricks_grants" "credential" { | ||
count = var.storage_credential.cloud != "" ? 1 : 0 | ||
count = var.create_storage_credential == true ? (length(var.storage_credential.permissions) != 0 ? 1 : 0) : 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove "== true" eval
main.tf
Outdated
@@ -13,32 +13,32 @@ locals { | |||
} | |||
|
|||
resource "databricks_storage_credential" "this" { | |||
count = var.storage_credential.cloud != "" ? 1 : 0 | |||
count = var.create_storage_credential == true ? 1 : 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove "== true" eval
No description provided.