تقييمات الطلاب
( 5 من 5 )
١ تقييمات
فيديو شرح How to use user_data in Terraform? - Part-23 ضمن كورس Terraform شرح قناة Rahul Wagh، الفديو رقم 23 مجانى معتمد اونلاين
Guide and Repository
User guide - https://jhooq.com/terraform-user-data/
Github Repo - https://github.com/rahulwagh/Terraform-Topics
In Terraform, the "user_data" block is used to specify data that should be passed to the instance at launch time. This data is typically used to configure the instance or run scripts on startup.
The user_data is passed to the instance as part of the launch configuration, and it is executed by the instance at launch. This can include things like installing software, configuring settings, or running scripts that need to be executed when the instance is first launched.
It can be added to a resource configuration, such as an "aws_instance" resource, and can contain either a string of data or a reference to a file containing the data.
In this lab session we will take a look on -
1. What is user_data in Terraform?
2. How to use user_data in Terraform?
3. How to do basic setup on AWS EC2 instance using user_data
Time Stamps
0:00 - Introduction
03:04 - Execute EC2 User Data Script from user_data
08:29 - Execute EC2 User Data Script from shell script file using Terraform
Follow me
Linkedin - https://www.linkedin.com/in/rahul-wagh/
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.