hi, I was trying to define an AWS IAM policy as JS...
# java
r
hi, I was trying to define an AWS IAM policy as JSON as the docs now seem to exemplify See https://www.pulumi.com/registry/packages/aws/api-docs/iam/rolepolicy/ But when I try to create the resource definition (put ARN in) with my bucket output, this does not go well 😉 and ends in stack overflow How would you use outputs that need to be handled async with this static json def ? java.util.concurrent.CompletionException: java.lang.StackOverflowError at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) Caused by: java.lang.StackOverflowError at com.google.gson.stream.JsonWriter.string(JsonWriter.java:617) at com.google.gson.stream.JsonWriter.writeDeferredName(JsonWriter.java:402) at com.google.gson.stream.JsonWriter.beginObject(JsonWriter.java:311) ::: I reverted to using com.pulumi.aws.iam.IamFunctions for now which also work fine for me.