-
Notifications
You must be signed in to change notification settings - Fork 173
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
Error using on the bucket that does not exist yet. #63
Comments
Any progress on that - it's prevents us from using the module when the bucket is first created. |
Sure, @morgante I think this should already be working without additional work though. Even though there is a separate option to specify one project, it's not being used to make the configuration behave in a static way. One can already specify only a single element to the array of entities and in this case it will ignore it when doing the At least it behaves this way in the @mikhail-khodorovskiy I'm going to add a similar test for the dynamically created bucket to confirm whether it's working or not and will let you know. In case it doesn't, I'll try to find a workaround. |
Good point. @mikhail-khodorovskiy It's probably also worth upgrading to version |
I tried, it did not. |
Actually I have a different error:
Error: Invalid for_each argument The "for_each" value depends on resource attributes that cannot be determined |
Even for the existing bucket when I migrate 2.20.0 google provider to 3.5.0 google provider I get the same error even on existing buckets in both adaptive and authoritative modes. |
Were you not getting this error before? |
Same issue here with a configuration declaring a custom role and using the module (version 5.1.0) to create IAM bindings to it:
|
I filed a different issue regarding this since this seems unrelated: #92. |
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
The text was updated successfully, but these errors were encountered: