Skip to content

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

Closed
wants to merge 11 commits into from

Conversation

artem-vovchenko01
Copy link

No description provided.

Copy link
Contributor

github-actions bot commented Jan 20, 2025

kics-logo

KICS version: v1.7.13

Category Results
HIGH HIGH 0
MEDIUM MEDIUM 10
LOW LOW 0
INFO INFO 0
TRACE TRACE 0
TOTAL TOTAL 10
Metric Values
Files scanned placeholder 10
Files parsed placeholder 10
Files failed to scan placeholder 0
Total executed queries placeholder 1049
Queries failed to execute placeholder 0
Execution time placeholder 28

variables.tf Outdated
description = "Cloud (azure, aws or gcp)"
}

variable "create_storage_credential" {
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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

@owlleg6 owlleg6 closed this Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants