narrow-needle-95047
01/03/2024, 6:45 AMpulumi init
and it then creates the structure which I can change.
◦ How could I automate this process?
◦ As I understand, I need a script that will:
▪︎ create the stacks (pulumi stack init ...
)
▪︎ remove the files created by automation
▪︎ then, during deployment, get the module to the infrastructure folder
▪︎ then the module will figure out what infra it is deploying with dynamic naming by looking into cloud-specific code folder
Is it the right thought process?
If you have any example to point me to, I would really appreciate it!
Any other feedback is also very welcome!narrow-needle-95047
01/03/2024, 8:54 AMgreat-sunset-355
01/03/2024, 11:40 AMpulumi cli
or automation API for more control.salmon-account-74572
01/03/2024, 8:58 PMpulumi new
. A little-known fact is that pulumi new
supports passing a path or URL to a template in order to use that template when creating the new project.
This blog post talks a bit more about the process: https://www.pulumi.com/blog/how-to-create-and-share-a-pulumi-template/
Does that help?salmon-account-74572
01/03/2024, 8:59 PMpulumi new
looks) to get an idea of how to parameterize your templates.narrow-needle-95047
01/03/2024, 11:13 PMsalmon-account-74572
01/03/2024, 11:14 PM