rich-whale-93740
07/22/2024, 6:38 PMOutput on a Python list? Here's the sudo code:
sns_topics: list[Output] = create_sns_topics()
receivers = []
for topic in sns_topics:
receiver = {
"arn": topic.arn
}
receivers.append(receiver)
yaml.dump(receivers)
yaml.dump throws because it cannot handle future objects (from topic.arn). I went through the doc on Outputs, but couldn't quite figure out how to use .apply on a listrich-whale-93740
07/22/2024, 6:43 PMpulumi.Output.json_dumps instead of yaml.dump