hi, I'm a bit stuck in figuring out the best way t...
# golang
l
hi, I'm a bit stuck in figuring out the best way to create an output. I create a number of S3 buckets by ranging over a list. For the output I'd like to have a map with the Bucket name (which is passed as a parameter) as the Key (the actual bucket name will differ because we add a suffix to that name). For the value I would like to create another map containing the k/v pairs
{"arn": <arn>, "name": <suffix + name>}
. Is it best to build a list of created Bucket resources and use
ApplyT
to construct the map while ranging over them?
Nevermind. Found a solution