I'm not sure what use case you have, but if you need to loop over a string (i.e. for output values) you can use the for String Directive and make that happen without a problem
Watch video 5.4 Learn Terraform - Using the for String Directive online without registration, duration hours minute second in high quality. This video was added by user NimbusDevOps 02 November 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 168 once and liked it 3 people.