https://pulumi.com logo
Title
g

glamorous-whale-27111

09/06/2022, 11:58 PM
Hello! I'm trying to figure out if Pulumi is right for my org. The ability to declaratively specify and track my architecture in my chosen languages i intriguing, but one thing that seems to be missing is the ability to build vm images with a config so I can achieve immutable deployments. This is of course possible to do for docker images with dockerfiles, but it isn't possible with VM's (as far as I know). Is there a supplementary tool that people use for this purpose? I came across Hashicorp's "Packer”, which seems to be the kind of thing I'm looking for, but I'm curious if the community has particular tools that they have found work well with Pulumi. The specific features I need are • ability to produce vm images • ability to deterministically specify images via config • ideally, integration with OpenStack
l

little-cartoon-10569

09/07/2022, 12:35 AM
It is possible for AWS, via AWS Image Builder, which is fully supported through Pulumi.
n

nice-electrician-16576

09/07/2022, 12:35 AM
Hey Augustine, let us look at your questions and respond by tomorrow. We appreciate the interest.
p

polite-carpenter-13290

09/07/2022, 2:49 PM
There is also hashicorp packer for this purposes ( automation vm image building )
👍 1
Sorry, not read completely your question.)
s

stocky-restaurant-98004

09/08/2022, 1:47 PM
You can definitely use Packer or AWS Image Builder for your AMI pipeline process - whichever you prefer. If you place your app's code in the AMI, then you'd want your AMI pipeline to trigger a
pulumi up -y
at the end, and just target
latest
with
getAmi()
. This will cause the latest version of your app to be deployed.
If you want to integrate everything into a single Pulumi program and you're using Packer, you can use the Command provider to run the
packer
command, but I would probably do my AMI and infra code in separate steps because creating an AMI can take a while and if it fails, you want a faster feedback loop.