logging: should be a list
error when aws_s3_bucket resource has local variables in the logging
#5037
Labels
question
A question about existing functionality; most questions are re-routed to discuss.hashicorp.com.
service/s3
Issues and PRs that pertain to the s3 service.
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
modules/private-bucket/variables.tf
:modules/private-bucket/main.tf
:main.tf
:Debug Output
Panic Output
Expected Behavior
It should be work with local variables. The logging list should not appear in the configuration if I not define anything.
Actual Behavior
This build executes
terraform plan
without problem if I use strings, but throws error when I use local variables.Steps to Reproduce
terraform init
terraform plan -out=./.terraform/plan
Important Factoids
The problem that I want to solve is if I not define a logging array in
main.tf
on the module call, then I don't want to initialize the logging. But this is not part of this error reporting.References
The text was updated successfully, but these errors were encountered: