https://pulumi.com logo
#general
Title
# general
b

bright-orange-69401

04/10/2020, 4:16 PM
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

cool-egg-852

04/10/2020, 4:17 PM
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

bright-orange-69401

04/10/2020, 4:22 PM
I see ! Thanks ! I think I'll build my own DynProvider in Python, should be easy peasy 😉
l

lemon-agent-27707

04/10/2020, 4:24 PM
You may be interested in property testing that uses policy as code: https://www.pulumi.com/docs/guides/testing/property-testing/