https://pulumi.com logo
#golang
Title
a

astonishing-spoon-27005

12/02/2019, 5:06 PM
how do i get the arn as a string that i can pass to a policy document?
w

white-balloon-205

12/02/2019, 5:16 PM
You cannot turn an output into string. You can transform the output into a new value by writing code inside the callback to apply. For a policy document, you will want your apply callback to construct the document and then lass the resulting output (now representing the document) as an input to a resource. See https://www.pulumi.com/docs/intro/concepts/programming-model/#outputs for more details.
a

astonishing-spoon-27005

12/02/2019, 5:25 PM
ah, ok. i think that makes sense. thanks @white-balloon-205
3 Views