Terraform AWS Webserver: Configure EC2 Instance UserData and SSH Debugging
We'll show you now to create an AWS EC2 Instance with Terraform and write UserData script that will configure the instance at launch. We're combing knowledge we've learned from in other lessons: creating an instance and security group. And making the instance more useful by installing the apache2 webserver and showing to debug all of that.
Useful Logs
- /var/lib/cloud/instance/user-data.txt - Where UserData is found
- /var/log/cloud-init-output.log - Output of cloud-init. This is what calls your UserScript script on launch
Links
AWS Console Guides
3h 41m
3h 41m
Terraform Fundamentals 101
1h 36m
1h 36m
Terraform AWS
2h 4m
2h 4m
Terraform HCL Fundamentals
1h 53m
1h 53m
Terraspace Fundamentals
2h 30m
2h 30m
Terraspace Cloud
2h 33m
2h 33m
Terraspace AWS Cloud
1h 43m
1h 43m
AWS EKS Kubernetes
4h 13m
4h 13m
Get full access to these great resources
All for less than the price of coffee a day
44 courses
286 lessons
46+ hours