https://pulumi.com logo
#general
Title
# general
c

crooked-jordan-34725

07/01/2019, 9:09 AM
how can I create policies and policy attachments dynamically? I’m trying to use
.apply
on resources to create a policy that will need their ARNs, but apparently that’s not allowed
b

boundless-monkey-50243

07/01/2019, 12:46 PM
Can you give an example? This sounds like it should be fine.
c

crooked-jordan-34725

07/01/2019, 1:30 PM
Actually it seems to work! Just the documentation says that the function
apply
cannot create resources. It seems that it can 😄