-
Notifications
You must be signed in to change notification settings - Fork 180
Open
Labels
P3medium priority issuesmedium priority issuesbugSomething isn't workingSomething isn't workingtriagedScoped and ready for workScoped and ready for work
Description
resource "google_storage_bucket" "logsinc_bucket_tools" {
name = "${var.environment_name}-log-sink"
project = data.google_project.tools_project.project_id
}
module "logsinc_bucket_iam_bindings" {
source = "terraform-google-modules/iam/google//modules/storage_buckets_iam"
version = "~> 3.0"
storage_buckets = [google_storage_bucket.logsinc_bucket_tools.id]
mode = "additive"
bindings = {
"roles/storage.objectCreator" = [
"group:[email protected]",
]
"roles/storage.objectViewer" = [
"group:[email protected]",
]
}
}
Causes an error:
Error: Invalid count argument
on .terraform/modules/hsq-uat.logsinc_bucket_iam_bindings/terraform-google-modules-terraform-google-iam-ace2efe/modules/storage_buckets_iam/main.tf line 45, in resource "google_storage_bucket_iam_member" "storage_bucket_iam_additive":
45: count = var.bindings_num > 0 ? var.bindings_num * local.additive * local.storage_bucket_count : length(local.bindings_formatted) * local.additive
pcasteran
Metadata
Metadata
Assignees
Labels
P3medium priority issuesmedium priority issuesbugSomething isn't workingSomething isn't workingtriagedScoped and ready for workScoped and ready for work