Student Reviews
( 5 Of 5 )
1 review
Video of What is Terraform null_resource and how to use it? - Part-21 in Terraform course by Rahul Wagh channel, video No. 21 free certified online
To learn more on null_resource visit - https://jhooq.com/terraform-null-resource/
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 - https://www.instagram.com/wagh.rahul17/
Twitter - https://twitter.com/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.