Terraform Project – Assignment – Exercise – Lab#3: Mixed

How to submit Assignment?

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


  • Exercise 1 – Write a terraform configuration file to create a EC2-Instance(RHEL7.5) along assigned with newly created Keypair, Security group in default VPC.
  • Exercise 2 – Write a terraform configuration file to create a EC2-Instance(RHEL7.5) along assigned with newly created Keypair, Security group in default VPC and run some shell script using local exec and install httpd in EC2-Instance using remote exec and copy a index.html from host machine to EC2-Instance.
  • Exercise 3 – Write a terraform configuration file to create a EC2-Instance(RHEL7.5) along assigned with newly created Keypair, Security group in newly created VPC and run some shell script using local exec and install httpd in EC2-Instance using remote exec and copy a index.html from host machine to EC2-Instance.
  • Exercise 4 – Convert into hard coding values to variables and all variables duplicate at vars.tf, command line and environemnt(3 Places). Values much be at terraform.tfvars, command line and environemnt(3 Places). Do let me know which has highest precedence.
  • Exercise 5 – Create a example for each functions such .
    • max
    • min
    • join
    • upper
    • index
    • length
    • loopup
    • file
    • tolist
    • tostring
  • Exercise 6 – Convert into Module a Exercise 4 programs.
Rajesh Kumar
Follow me