{"id":22505,"date":"2022-07-08T05:44:05","date_gmt":"2022-07-08T05:44:05","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=22505"},"modified":"2022-12-23T05:52:28","modified_gmt":"2022-12-23T05:52:28","slug":"terrform-project-assignment-exercise-lab-1","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/terrform-project-assignment-exercise-lab-1\/","title":{"rendered":"Terraform Project \u2013 Assignment \u2013 Exercise \u2013 Lab#1: Variables"},"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<h2 class=\"wp-block-heading\">Assignment &#8211; 1<\/h2>\n\n\n\n<p>Write a terraform script using aws ec2 instance and github and apply following kind of variables<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Types of Terraform variable \u2013 Number<\/li><li>Types of Terraform variable \u2013 String<\/li><li>Types of Terraform variable \u2013 List<\/li><li>Types of Terraform variable \u2013 Map<\/li><li>Types of Terraform variable \u2013 Boolean<\/li><\/ul>\n\n\n\n<p>and Decare variables in<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Terraform file<\/li><li>Override through Command Line<\/li><\/ul>\n\n\n\n<p>Example &#8211; https:\/\/www.devopsschool.com\/blog\/terraform-variables-complete-reference-guide\/<\/p>\n\n\n\n<p><strong>Where to publish &#8211; BestDevOps.com<\/strong> &amp; Share a link with me<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Assignment &#8211; 2<\/h2>\n\n\n\n<p>Write a Terraform script which create a ubuntu ec2-instance and copy a ansible playbook, install ansible and run it.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Step 1 &#8211; Create ec2-instance with key and group<\/li><li>Step 2 &#8211; Copy playbook using file terraform provisioner<\/li><li>Step 3 &#8211; Install Ansible using remote terraform provisioner<\/li><li>Step 4 &#8211; RUn Ansinle playbook command using remote terraform provisioner<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Assignment &#8211; 3<\/h2>\n\n\n\n<p>Write a 2 Module in Terraform. One Local Module, Second remote module.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Local Module Spec &#8211; in Ubuntu &#8211; Setup a webserver<\/li><li>Remote module &#8211; Setup VPC<\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_82774\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_87064\"  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_82774\"  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><\/figure><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. Assignment &#8211; 1 Write a terraform script using aws&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-22505","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/22505","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=22505"}],"version-history":[{"count":8,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/22505\/revisions"}],"predecessor-version":[{"id":31047,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/22505\/revisions\/31047"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=22505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=22505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=22505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}