https://pulumi.com logo
Title
a

abundant-appointment-96790

09/03/2020, 10:06 PM
Hi all. I’m trying to update an ECS service and I’m getting this mystic message:
Creation of service was not idempotent. "personal-andy-AugmentationService"
. Digging around it seems to be related to this one: https://github.com/terraform-providers/terraform-provider-aws/issues/2283 I can’t find the reference in pulumi doc for ECS, but it’s mentioned here: https://www.pulumi.com/docs/reference/pkg/aws/acm/certificate/. How do you specify the lifecycle block? A quick search in pulumi docs didn’t yield anything… 😞 I eventually managed to work around by rename the service, but I’m still curious about the
lifecycle
reference here since we have ACM certs…
l

little-cartoon-10569

09/03/2020, 10:29 PM
I'm betting that reference
create_before_destroy = true in a lifecycle block
is copied directly from the Terraform provider docs. The Pulumi equivalent is to set
deleteBeforeReplace: true
in your opts.
a

abundant-appointment-96790

09/03/2020, 10:30 PM
That makes a lot of sense!!
l

little-cartoon-10569

09/03/2020, 10:57 PM
Actually would it be
deleteBeforeReplace: false
?
👍 1
Since the Terraform lifecycle option seems to be the opposite in meaning...