Is there a way to run an arbitrary Bash command as...
# general
b
Is there a way to run an arbitrary Bash command as part of a Pulumi deployment ? I'm trying to
curl
my deployed website at the end of every deployment, and of course the URL is built from Pulumi variables... 🙂
c
There is no official way to do this.
There is some hacky way with dynamic providers to be able to do a “hook”, but that’s it
👍 1
🙏 1
https://github.com/pulumi/pulumi/issues/127 and https://github.com/pulumi/pulumi/issues/1691 kind of discuss this a bit, you may want to follow them
In #1691 the workaround is provided
b
I see ! Thanks ! I think I'll build my own DynProvider in Python, should be easy peasy 😉
l
You may be interested in property testing that uses policy as code: https://www.pulumi.com/docs/guides/testing/property-testing/