null_resource (terraform)
Introduction
Introduction
If you need to run provisioners that aren't directly associated with a specific resource, you can associate them with a null_resource.
Instances of null_resource are treated like normal resources, but they don't do anything.
Important: Use provisioners as a last resort. There are better alternatives for most situations.
Reference
Reference
null_resource
null_resource
https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource
Provisioners Without a Resource
Provisioners Without a Resource
https://developer.hashicorp.com/terraform/language/resources/provisioners/null_resource
Example
Example
TBD duplicates