https://pulumi.com logo
Title
f

fierce-market-40669

03/21/2021, 10:11 PM
When using pulumi, do developers still use Ansible to configure the instances? Is there a product like pulumi but for container or VM configuration?
l

little-cartoon-10569

03/21/2021, 10:36 PM
You can do post-creation tasks any way you like. There is no product in the Pulumi family for this. I use AWS SSM for the few machines I need to configure after deployment. Mostly I use "golden images", which means my Pulumi configuration is as simple as specifying an EC2 AMI ID.
Invoking Ansible from Pulumi is pretty easy, especially if it's done either via automation-api, or from EC2 user data or AWS SSM documents.
Something like Packer would be closest to the Pulumi way of working, I'd think.
f

fierce-market-40669

03/24/2021, 11:31 PM
Thanks. I was hoping to do ansible in code. I know you can do it in python. But i guess yaml is that way to go,. Thanks for the advice.
l

little-cartoon-10569

03/24/2021, 11:37 PM
What is "Ansible in code"? You can do anything with Pulumi since you're using a general language. You should only have to use yaml if you want to use a tool that relies on yaml.