https://pulumi.com logo
Title
l

lively-needle-84406

11/11/2022, 7:43 PM
I am currently using Pulumi to write my companies disaster recovery automation. I have everything set up in AWS using Pulumi (VPC, EKS, IAM, Kubernetes cluster configured). I now want to use Typescript to make several HTTP requests (to GitHub) to download some files locally during the
pulumi up
and apply these files as helm charts via the k8s.helm.v3.Chart resource. How can I make the Pulumi runtime honor my requests to GitHub, and then apply/track ~20 helm charts? Others have mentioned Dynamic Providers & Component Resources, but I have not yet got these to work successfully. Any ideas? P.S. almost to the point of writing a separate script that gets ran in my CI/CD that does this (but I would lose any tracking capabilities of Pulumi for these charts)
b

billowy-army-68599

11/11/2022, 8:08 PM
I think you could just use
getRepositoryFile
? https://www.pulumi.com/registry/packages/github/api-docs/repositoryfile/#look-up the content will be what you want, you can pass that to the helm chart
l

lively-needle-84406

11/11/2022, 8:10 PM
Ahh, thanks @billowy-army-68599. Didn't know a GitHub package existed. 👍