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
crash when bucket logging block is empty #13038
crash when bucket logging block is empty #13038
Comments
The workaround is to ensure that there is never an empty dynamic "logging" {
for_each = var.log-bucket == "" ? [] : [var.log-bucket]
content {
log_bucket = var.log-bucket
}
}
This is a pretty involved workaround however, and it took me more than a couple minutest to realize this was the cause of the panic. |
Co-authored-by: Edward Sun <sunedward@google.com> Fixes hashicorp/terraform-provider-google#13038
Co-authored-by: Edward Sun <sunedward@google.com> Fixes hashicorp/terraform-provider-google#13038 Signed-off-by: Modular Magician <magic-modules@google.com>
Co-authored-by: Edward Sun <sunedward@google.com> Fixes hashicorp#13038 Signed-off-by: Modular Magician <magic-modules@google.com>
Co-authored-by: Edward Sun <sunedward@google.com> Fixes hashicorp/terraform-provider-google#13038 Signed-off-by: Modular Magician <magic-modules@google.com> Signed-off-by: Modular Magician <magic-modules@google.com>
Co-authored-by: Edward Sun <sunedward@google.com> Fixes hashicorp/terraform-provider-google#13038 Signed-off-by: Modular Magician <magic-modules@google.com>
Co-authored-by: Edward Sun <sunedward@google.com> Fixes hashicorp/terraform-provider-google#13038 Signed-off-by: Modular Magician <magic-modules@google.com> Signed-off-by: Modular Magician <magic-modules@google.com>
Co-authored-by: Edward Sun <sunedward@google.com> Fixes hashicorp/terraform-provider-google#13038
Co-authored-by: Edward Sun <sunedward@google.com> Fixes hashicorp/terraform-provider-google#13038
Co-authored-by: Edward Sun <sunedward@google.com> Fixes hashicorp/terraform-provider-google#13038
Co-authored-by: Edward Sun <sunedward@google.com> Fixes hashicorp/terraform-provider-google#13038
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
upon request
Panic Output
It's short enough IMO:
Expected Behavior
A GCS bucket should be successfully provisioned, with no "log bucket" configured.
Actual Behavior
See above panic.
Steps to Reproduce
terraform apply
Important Factoids
The text was updated successfully, but these errors were encountered: