{"id":5265,"date":"2026-06-06T11:42:14","date_gmt":"2026-06-06T11:42:14","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=5265"},"modified":"2026-06-06T11:59:04","modified_gmt":"2026-06-06T11:59:04","slug":"terraform-quick-reference","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=5265","title":{"rendered":"Terraform Quick Reference"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Quick reference for Terraform when using AWS.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export AWS_PROFILE=&lt;name of AWS Profile&gt;\n\naws sso login --profile=$AWS_PROFILE\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once you are authenticated, i&#8217;m assuming SSO here, then you can apply your configuration with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>terraform init\n\nterraform validate\n\nterraform plan\n\nterraform apply\n\nterraform destroy<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can add the &#8220;&#8211;auto-approve&#8221; to the end so you don&#8217;t have to press &#8220;yes&#8221;, but use with caution!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quick reference for Terraform when using AWS. Once you are authenticated, i&#8217;m assuming SSO here, then you can apply your configuration with: You can add the &#8220;&#8211;auto-approve&#8221; to the end so you don&#8217;t have to press &#8220;yes&#8221;, but use with caution!<\/p>\n","protected":false},"author":4,"featured_media":4695,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-5265","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terraform"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/5265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5265"}],"version-history":[{"count":2,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/5265\/revisions"}],"predecessor-version":[{"id":5267,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/5265\/revisions\/5267"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/media\/4695"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}