terraform error when creating list of s3 buckets: Inappropriate value for attribute “bucket”: string required
I need to create multiple buckets in terraform with the same attributes (versioning, ownership, etc.) and don’t want to copy the same text repeatedly. I also need to add and delete buckets occasionally. I tried using the below code: