Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Terraform Project – Assignment – Exercise – Lab#1: Variables

How to submit Assignment?

Please submit assignment @https://www.debug.school/ and POST url share in the comments of this post.

Assignment – 1

Write a terraform script using aws ec2 instance and github and apply following kind of variables

  • Types of Terraform variable – Number
  • Types of Terraform variable – String
  • Types of Terraform variable – List
  • Types of Terraform variable – Map
  • Types of Terraform variable – Boolean

and Decare variables in

  • Terraform file
  • Override through Command Line

Example – https://www.devopsschool.com/blog/terraform-variables-complete-reference-guide/

Where to publish – BestDevOps.com & Share a link with me

Assignment – 2

Write a Terraform script which create a ubuntu ec2-instance and copy a ansible playbook, install ansible and run it.

  • Step 1 – Create ec2-instance with key and group
  • Step 2 – Copy playbook using file terraform provisioner
  • Step 3 – Install Ansible using remote terraform provisioner
  • Step 4 – RUn Ansinle playbook command using remote terraform provisioner

Assignment – 3

Write a 2 Module in Terraform. One Local Module, Second remote module.

  • Local Module Spec – in Ubuntu – Setup a webserver
  • Remote module – Setup VPC
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x