i'm trying to fetch the RDS root CA in my pulumi p...
# general
g
i'm trying to fetch the RDS root CA in my pulumi program so i can set it as a config value in kubernetes. is there a way to turn the contents of a URL into a pulumi resource?
there's no auth or anything, i just want to do something like
const rdsPem = new UrlResource("<https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem>")
or something to that effect
i guess a resource isn't really what i want since there's no CRUD, just read. i really just want to turn a URL into a
pulumi.Output
const rdsGlobalCaPem = pulumi.Output.create(fetch(PEM_URL).then((res) => res.text()));
seems like this does the job
👍 1
w
yea if you dont need the whole lifecycle just create an output from it
you can then use that output in other stacks or other processes
s
If you're just trying to fetch it (as opposed to creating it in your Pulumi program), you don't even need the output. Any
async
stuff will execute during preview, before resources are managed.
All Pulumi inputs take e.g. plain string values (or string outputs)
g
ah right thanks, shoulda thought of that