{"id":7600,"date":"2019-11-01T08:32:45","date_gmt":"2019-11-01T08:32:45","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=7600"},"modified":"2022-08-29T07:25:18","modified_gmt":"2022-08-29T07:25:18","slug":"terrform-project-assignment-exercise-part-1","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/terrform-project-assignment-exercise-part-1\/","title":{"rendered":"Terraform Project \u2013 Assignment \u2013 Exercise \u2013 Lab#3: Mixed"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">How to submit Assignment?<\/h2>\n\n\n\n<p><strong>Please submit assignment @https:\/\/www.debug.school\/ and POST url share in the comments of this post.<\/strong> <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Exercise 1 <\/strong>&#8211; Write a terraform configuration file to create a EC2-Instance(RHEL7.5) along assigned with newly created Keypair, Security group in default VPC.<\/li><li><strong>Exercise 2<\/strong> &#8211;  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.<\/li><li><strong>Exercise 3 <\/strong>&#8211;  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.<\/li><li><strong>Exercise 4 <\/strong>&#8211; 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.<\/li><li><strong>Exercise 5 <\/strong>&#8211; Create a example for each functions such .<ul><li>max<\/li><li>min<\/li><li>join<\/li><li>upper<\/li><li>index<\/li><li>length<\/li><li>loopup<\/li><li>file<\/li><li>tolist<\/li><li>tostring<\/li><\/ul><\/li><li><strong>Exercise 6 <\/strong>&#8211; Convert into Module a Exercise 4 programs.<\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_24892\"><iframe loading=\"lazy\"  id=\"_ytid_47032\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_24892\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>How to submit Assignment? Please submit assignment @https:\/\/www.debug.school\/ and POST url share in the comments of this post. Exercise 1 &#8211; Write a terraform configuration file to create a EC2-Instance(RHEL7.5)&#8230; <\/p>\n","protected":false},"author":1,"featured_media":7780,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5129],"tags":[],"class_list":["post-7600","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terraform"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/7600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=7600"}],"version-history":[{"count":6,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/7600\/revisions"}],"predecessor-version":[{"id":31046,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/7600\/revisions\/31046"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/7780"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=7600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=7600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=7600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}