This message was deleted.
# python
s
This message was deleted.
g
Two failing approaches:
Copy code
identifiers=[pulumi.Output.apply(account.id, lambda id: f"arn:aws:iam::{id}:root")]
identifiers=[pulumi.Output.concat("arn:aws:iam::", account.id, ":root")]
l
The approach here is to do your call to
GetPolicyDocument..()
from within an
All
or
Apply
call that coordinates and waits for the outputs you need. This will return a new output value that can be used elsewhere.
🙌 1
g
Thanks Evan!
l
partypus 8bit Important to note that this approach is fine for getting resources. Get calls are synchronous and don't change the dependency graph. However, creating resources within Apply/All causes problems and should be avoided.
✔️ 1