Hi all. I’m trying to update an ECS service and I’...
# aws
a
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
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
That makes a lot of sense!!
l
Actually would it be
deleteBeforeReplace: false
?
👍 1
Since the Terraform lifecycle option seems to be the opposite in meaning...