Some more context: I want to implement something like “build this AMI using Packer, but if it’s been built in the last three days, don’t bother rebuilding it”, or similar
stocky-spoon-28903
07/19/2018, 5:02 PM
Ultimately it would be nice to have a DSL around image building that lets them be expressed in the language of choice (inheritance would be really useful for images)
m
microscopic-florist-22719
07/19/2018, 5:37 PM
The closest thing we have to this at the moment is the dynamic provider, which lets you write resource providers inside your Pulumi program itself. You can see an example of this in @bitter-oil-46081’s github webhooks example: https://github.com/ellismg/github-webhooks-serverless/blob/master/github.ts
s
stocky-spoon-28903
07/19/2018, 5:39 PM
I was wondering about using that from the stream yesterday. That looks like it should do the trick