filmov
tv
What is Terraform null_resource and how to use it? - Part-21
Показать описание
To use the null_resource in Terraform, you first need to declare the resource block and specify a unique name for it. Within the resource block, you can specify a provisioner block
Here's an example of how you can use the null_resource in Terraform:
resource "null_resource" "example" {
provisioner "local-exec" {
command = "echo Hello world"
}
}
The null_resource can be used to perform actions that don't create any infrastructure resources, such as running a local script or making an API call. In the provisioner block, you can specify the desired configuration options for the null_resource, such as the script that should be run or the API endpoint that should be called.
▬▬▬▬▬▬ ⭐️ Time Stamps ⭐️ ▬▬▬▬▬▬
0:00 - Introduction
02:34 - What is null_resource?
03:36 - What are use cases of null_resource?
06:55 - What is trigger in null_resource?
08:40 - Demo of null_resource with trigger
▬▬▬▬▬▬ ⭐️ Follow me ⭐️ ▬▬▬▬▬▬
Disclaimer/Policy: All the content/instructions are solely mine. The source is completely open-source.
Video is copyrighted and can not be re-distributed on any platform.
Комментарии