Update provisoners

Hi there!
Is there a way to define a provisioner which would be triggered only as the action for resource replacement? I need to handle a case when typical replacement by executing destroy->create would not work.
Thanks in advance for answer

Hi @twanc,

Provisioners are offered as a last-resort mechanism to deal with special actions that need to be taken to prepare an object to be ready for use when it is created. There is no mechanism to take provisioning actions on updates.

However, the replacement action involves both a destroy and a create, and so the create step would involve provisioning. You mentioned in your question that this isn’t sufficient but I’m not sure I understood why. Could you elaborate a bit about what you mean by “typical replacement”, and why your situation isn’t “typical”?