Question about pulumi in CI/CD - I know there are ...
# general
s
Question about pulumi in CI/CD - I know there are utilities out there that can convert terraform plans to human readable outputs so they can put the entire "plan" into a github comment, does anything like that exist for pulumi?
l
If you convert the TF code to Pulumi code (tf2pulumi or Pulumi Import), then run
pulumi preview
or
pulumi up
, there's an
explain
option which does what you're looking for.
Also Neo can do it, and it is much more verbose and detailed.
So the answer is: no external utility, no. It's a built-in feature 🙂
s
This would be for self-hosted pulumi, no TF required. I'll check out the explain option
l
tf2pulumi only coverts TF code to Pulumi, not TF plans, I believe.
explain
works only on Pulumi state changes: it explains what it will do to your resources / state in order to bring them up to date with your Pulumi code.
s
Gotcha, ty
Is there some documentation you can toss me for this? Cause I can't seem to be able to google
pulumi explain
without getting 30 videos going over the basics of pulumi
l
I don't think it's a command? I've only seen it in the CLI. Any time you see a preview (via
pulumi up
or
pulumi preview
), you're given the option to "explain".
s
Ah yeh, I was looking for something like this for pulumi https://github.com/oocx/tfplan2md
l
Nice. Yes, that's what explain does, and it's built in. It works on Pulumi code, but it has the same purpose.