https://pulumi.com logo
i

icy-engineer-10830

09/26/2019, 2:13 PM
In the terraform gcp code for an instance template there's the ability to set lifecycle data but I do not see the equivalent in pulumi. am I missing something or is the not present?
w

white-balloon-205

09/26/2019, 2:20 PM
There are equivalents for all of the Terraform lifecycle options in Pulumi resource options. See https://www.pulumi.com/docs/intro/concepts/programming-model/#resourceoptions. Is there a particular Terraform option you are looking to emulate in Pulumi?
c

cold-car-23440

09/26/2019, 2:22 PM
Nice!!
i

icy-engineer-10830

09/26/2019, 2:23 PM
I'm looking to create an
InstanceGroupManager
which in the terraform code looks like it depends on the lifecycle to be set to
CreateBeforeDestroy
in the
InstanceTemplate
g

gentle-diamond-70147

09/26/2019, 2:46 PM
Pulumi does create before destroy by default. You can set the inverse (doesn’t sound like you want to in this case) with https://www.pulumi.com/docs/intro/concepts/programming-model/#deletebeforereplace.
i

icy-engineer-10830

09/26/2019, 2:50 PM
@gentle-diamond-70147 thanks, appears I don't need it then
g

gentle-diamond-70147

09/26/2019, 2:53 PM
Right.