I’m in the process of converting all my scripts to be compatible with the changes to destroy-time provisioners, and I have a question about connection blocks. I have one defined that my creation provisoners use and my newly written destroy provisioners do not. This throws a deprecation warning, because the connection block references a vault data source for the private key.
Is there a way to tell a connection block that it is not used by destroy provisioners, or do I need to copy the block into each of my creation provisioners? Trying not to repeat my code over and over.