To learn more on null_resource visit - https://jhooq.com/terraform-null-reso...
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 ⭐️ ▬▬▬▬▬▬
Instagram - / wagh.rahul17
Twitter - / wagh_rahul
To learn more on DevOps visit - https://jhooq.com/
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.
Watch video What is Terraform null_resource and how to use it? - Part-21 online without registration, duration hours minute second in high quality. This video was added by user Rahul Wagh 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 14,835 once and liked it 372 people.