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.
little-cartoon-10569
03/21/2021, 10:37 PM
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.
little-cartoon-10569
03/21/2021, 10:38 PM
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.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.