Closed MitchellGerdisch closed 1 year ago
@MitchellGerdisch this looks to be an issue with how the nested arguments are marshaled by the engine. For some reason when you pass in an output to any argument in role
object it throws this error. Will update this issue when I have some more clarity on how to get this working. Thanks for filing this!!
@MitchellGerdisch The latest version (0.1.0) fixes this issue. Please let me know if you run into any other issues along the way!
What happened?
Have a small program (see Steps to reproduce section for code) that creates a policy and then creates an
AssumableRoleWithOIDC
resource that references the arn of that created policy.pulumi up/preview
throws this error:If one passes a hard-coded ARN string it's fine. Attempts to use
apply
and similar techniques (see attached file) throw the same error.Steps to reproduce
pulumi up
orpulumi preview
and see the thrown error----- code ----
Expected Behavior
Should not throw an error when referencing a policy resource arn.
Actual Behavior
Throws error
Output of
pulumi about
CLI
Version 3.49.0 Go Version go1.19.3 Go Compiler gc
Plugins NAME VERSION aws 5.24.0 aws-iam 0.0.6 awsx 1.0.1 docker 3.6.1 nodejs unknown
Host
OS darwin Version 12.5.1 Arch x86_64
This project is written in nodejs: executable='/Users/mitch/.nvm/versions/node/v18.0.0/bin/node' version='v18.0.0'
Current Stack: dev
Found no resources associated with dev
Found no pending operations associated with dev
Backend
Name pulumi.com URL https://app.pulumi.com/MitchGerdisch
Dependencies: NAME VERSION @types/node 14.18.35 @pulumi/aws-iam 0.0.6 @pulumi/aws 5.24.0 @pulumi/awsx 1.0.1 @pulumi/pulumi 3.49.0
Pulumi locates its logs in /var/folders/qp/6k0zsrj13rz5ll53hsmlksvw0000gq/T/ by default
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).