Closed olimcc closed 8 months ago
Hi, thanks for posting this. I can see why this is puzzling! It'd help to know
someOutput
?apply(...)
did you try? The one that occurs to me is pulumi.interpolate `${someOutput}`
, but you probably already tried that (and anyway if it worked, it would be good to understand why it's necessary).I suspect that this has the same root cause as #821.
What happened?
I am attemtping to migrate an AppRunner service from
aws.
toawsnative.
, using the Typescript API.The API transition itself was straightforward, however I'm hitting an issue with setting environment variables based on Pulumi outputs. The error is happening outside of Pulumi, and looks like Pulumi outputs are not being handled appropriately, yielding the following error:
operation error CloudControl: UpdateResource, https response error StatusCode: 400, RequestID: c5a399bc-99a6-4b22-994d-14cf8843d7e1, api error ValidationException: Model validation failed (#/SourceConfiguration/ImageRepository/ImageConfiguration/RuntimeEnvironmentVariables/0/Value: expected type: String, found: JSONObject
Expected Behavior
This was a direct translation, so I expected to be able to set these values similarly to how I had done previously. I've tried a couple of varieties of
apply(..)
to no avail.Steps to reproduce
The prior, functioning case:
With awsnative:
Which results in error.
Output of
pulumi about
CLI Version 3.53.1 Go Version go1.19.5 Go Compiler gc
Plugins NAME VERSION aws 5.26.0 aws-native 0.47.0 awsx 1.0.1 docker 3.6.1 mongodbatlas 3.5.2 nodejs unknown
Host OS darwin Version 12.1 Arch arm64
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).