You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a whole bunch of buckets as follows. I need to optionally enable versioning or logging (with predefined bucket name and prefix) on each of them
Enabling/disabling for versioning condition works fine. But the similar code for enabling/disabling logging fails with an error regardless of logging = true/false in locals
Error: Inconsistent conditional result types
The true and false result expressions must have consistent types. The 'true' value includes object attribute "target_bucket", which is absent in the 'false' value.
Description
I create a whole bunch of buckets as follows. I need to optionally enable versioning or logging (with predefined bucket name and prefix) on each of them
Enabling/disabling for versioning condition works fine. But the similar code for enabling/disabling logging fails with an error regardless of logging = true/false in locals
Same error when using try instead of lookup
Versions
Module version [Required]: 4.6.0
Terraform version: Terraform v1.10.5
Provider version(s): provider registry.terraform.io/hashicorp/aws v5.86.1
Reproduction Code [Required]
Steps to reproduce the behavior:
run
terraform plan
orterraform validate
Expected behavior
I expect a logging configuration will be created in case
logging = true
in locals. If it'sfalse
or does not exist, logging will not be enabledActual behavior
The text was updated successfully, but these errors were encountered: