Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll 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
Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x