{"id":7573,"date":"2019-10-31T21:51:22","date_gmt":"2019-10-31T21:51:22","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=7573"},"modified":"2021-11-15T11:19:40","modified_gmt":"2021-11-15T11:19:40","slug":"terraform-advance-workflow-loop-explained","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/terraform-advance-workflow-loop-explained\/","title":{"rendered":"Terraform Advance Workflow loop explained!!!"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"638\" height=\"359\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/10\/terraform-workflow-explainer.jpg\" alt=\"\" class=\"wp-image-7576\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/10\/terraform-workflow-explainer.jpg 638w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/10\/terraform-workflow-explainer-300x169.jpg 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/10\/terraform-workflow-explainer-355x199.jpg 355w\" sizes=\"auto, (max-width: 638px) 100vw, 638px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"455\" height=\"291\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/10\/tf_state-terraform-workflow.png\" alt=\"\" class=\"wp-image-7578\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/10\/tf_state-terraform-workflow.png 455w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/10\/tf_state-terraform-workflow-300x192.png 300w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"566\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/10\/terraform-advance-workflow-devopsschool-1024x566.png\" alt=\"\" class=\"wp-image-7574\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/10\/terraform-advance-workflow-devopsschool-1024x566.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/10\/terraform-advance-workflow-devopsschool-300x166.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2019\/10\/terraform-advance-workflow-devopsschool-768x425.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>validate &#8211; Validates the Terraform files<br> init &#8211; Init. Initialize the (local) Terraform environment. Usually executed only once per session.<br> providers &#8211; Prints a tree of the providers used in the configuration<br> graph &#8211; Create a visual graph of Terraform resources<br> plan &#8211; Plan. Compare the Terraform state with the as-is state in the cloud, build and display an execution plan. This does not change change the deployment (read-only).<br> show &#8211; Inspect Terraform state or plan<br> apply &#8211; Apply the plan from the plan phase. This potentially changes the deployment (read and write).<br> show &#8211; Inspect Terraform state or plan<br> output &#8211; Read an output from a state file<br> destroy &#8211; Destroy all resources that are governed by this specific terraform environment.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>validate<\/strong> &#8211; Validates the Terraform files<\/li><li><strong>init<\/strong> &#8211; Init. Initialize the (local) Terraform environment. Usually executed only once per session.<\/li><li><strong>providers<\/strong> &#8211; Prints a tree of the providers used in the configuration<\/li><li><strong>graph<\/strong> &#8211; Create a visual graph of Terraform resources<\/li><li><strong>plan<\/strong> &#8211; Plan. Compare the Terraform state with the as-is state in the cloud, build and display an execution plan. This does not change change the deployment (read-only).<\/li><li><strong>show<\/strong> &#8211; Inspect Terraform state or plan<\/li><li><strong>apply<\/strong> &#8211; Apply the plan from the plan phase. This potentially changes the deployment (read and write).<\/li><li><strong>show<\/strong> &#8211; Inspect Terraform state or plan<\/li><li><strong>output<\/strong> &#8211; Read an output from a state file<\/li><li><strong>destroy<\/strong> &#8211; Destroy all resources that are governed by this specific terraform environment.<\/li><\/ul>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_36899\"><iframe loading=\"lazy\"  id=\"_ytid_83376\"  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_36899\"  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>validate &#8211; Validates the Terraform files init &#8211; Init. Initialize the (local) Terraform environment. Usually executed only once per session. providers &#8211; Prints a tree of the providers used in&#8230; <\/p>\n","protected":false},"author":1,"featured_media":7784,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5129],"tags":[],"class_list":["post-7573","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\/7573","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=7573"}],"version-history":[{"count":5,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/7573\/revisions"}],"predecessor-version":[{"id":25330,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/7573\/revisions\/25330"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/7784"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=7573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=7573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=7573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}