- Resources
- provisioners
- Provisioners Without a Resource
Provisioners Without a Resource
If you need to run provisioners that aren't directly associated with a specific
resource, you can associate them with a terraform_data
.
Instances of terraform_data
are treated
like normal resources, but they don't do anything. Like with any other resource
type, you can configure provisioners
and connection details on a
terraform_data
resource. You can also use its input
argument, triggers_replace
argument, and any
meta-arguments to control exactly where in the dependency graph its
provisioners will run.
Important
Use provisioners as a last resort. There are better alternatives for most situations. Refer to Declaring Provisioners for more details.