crooked-pillow-11944
09/23/2021, 2:50 AMs3_reference = pulumi.StackReference(f"s3")
buckets = << dictionary of all outputs from s3 stack>>
policy=pulumi.Output.all(all_bukcets=buckets).apply(lambda args: f"""{{
{{
"Effect": "Allow",
"Action": ["s3:*"],
"Resource": [
<< buckets go here >>
]
}},
}}
Does anybody have a good way of accomplishing this?little-cartoon-10569
09/23/2021, 4:05 AMapply()
, which makes this sort of iteration easy.crooked-pillow-11944
09/23/2021, 4:24 PM