dry-pilot-49577
04/21/2023, 10:57 PMdynamic.ResourceProvider
is a ts/js thing specifically. Every attempt to call an API service inside a dynamic resource provider, I reach a dead end because of native code. I tried using a polyfilled fetch
, then a ponyfilled fetch
, then got
, and even axios
. All end up calling native code eventually, because they eventually hit something like JSON.parse
or fetch
. I'm either doing something really dumb (likely), need to pre-bundle & compile my typescript before running pulumi.*
(ew?), or a third way I've yet to uncover. Open to suggestions, code in π§΅green-stone-37839
04/21/2023, 11:01 PMpulumi.Config
inside dynamic providers. https://github.com/pulumi/pulumi/issues/4512dry-pilot-49577
04/21/2023, 11:05 PMresponse.apply
through all the resources)green-stone-37839
04/21/2023, 11:18 PMaxios
or whatever HTTP client you want with a dynamic provider. Thats the whole point!dry-pilot-49577
04/21/2023, 11:27 PMesm: true
& coupled with the compile targets I might be messing up the internal serializationbillowy-army-68599
04/22/2023, 12:09 AMdry-pilot-49577
04/22/2023, 12:11 AM