{"id":17491,"date":"2021-10-28T12:10:08","date_gmt":"2021-10-28T06:40:08","guid":{"rendered":"http:\/\/onlineappsdba.com\/?p=17491"},"modified":"2021-10-28T12:18:10","modified_gmt":"2021-10-28T06:48:10","slug":"provision-aws-infrastructure-with-terraform","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/","title":{"rendered":"How to Provision AWS Infrastructure with Terraform?"},"content":{"rendered":"<div class=\"p-rich_text_section\"><span class=\"c-emoji c-emoji__medium c-emoji--inline\" data-qa=\"emoji\" data-sk=\"tooltip_parent\"><img decoding=\"async\" src=\"https:\/\/a.slack-edge.com\/production-standard-emoji-assets\/13.0\/google-medium\/2601-fe0f@2x.png\" alt=\":cloud:\" aria-label=\"cloud emoji\" data-stringify-type=\"emoji\" data-stringify-emoji=\":cloud:\" \/><\/span> Cloud automation is on its pace and various tools\u00a0 are proposed for faster and efficient development\u00a0. One such automation tool is \u00a0Terraform.<\/div>\n<div><\/div>\n<div class=\"p-rich_text_section\"><b data-stringify-type=\"bold\">What is Terraform?<\/b><\/div>\n<div class=\"p-rich_text_section\">\n<p>\u27aa Terraform is an open-source IaaS (Infrastructure as a Code) tool by Hashicorp. It is used to build, provision and modify architecture using declarative commands.<\/p>\n<\/div>\n<div class=\"p-rich_text_section\"><b data-stringify-type=\"bold\">\u00a0Why Terraform? <\/b><\/div>\n<div class=\"p-rich_text_section\">\n<p><b data-stringify-type=\"bold\">\u27aa <\/b>Terraform is effective, fast and secure for provisioning architecture. It supports almost all cloud vendors like Amazon Web Service, Microsoft Azure, Google Cloud Platform, Oracle Cloud and more.<\/p>\n<\/div>\n<div><\/div>\n<div class=\"p-rich_text_section\"><b data-stringify-type=\"bold\">How to Provision AWS Infrastructure<\/b><\/div>\n<div class=\"p-rich_text_section\"><b data-stringify-type=\"bold\">\u27aa\u00a0<\/b>Using the AWS IAM Access keys and some declarative commands in Terraform we can easily create and manage any resource in AWS.<\/div>\n<div><\/div>\n<div class=\"p-rich_text_section\"><\/div>\n<div class=\"p-rich_text_section\"><span class=\"c-emoji c-emoji__medium c-emoji--inline\" data-qa=\"emoji\" data-sk=\"tooltip_parent\"><img decoding=\"async\" src=\"https:\/\/a.slack-edge.com\/production-standard-emoji-assets\/13.0\/google-medium\/1f913@2x.png\" alt=\":nerd_face:\" aria-label=\"nerd face emoji\" data-stringify-type=\"emoji\" data-stringify-emoji=\":nerd_face:\" \/><\/span>\u00a0So, want to learn more about\u00a0<b data-stringify-type=\"bold\">Terraform<\/b>?<\/div>\n<div class=\"p-rich_text_section\">Check out this blog which covers a\u00a0<b data-stringify-type=\"bold\">step-by-step tutorial<\/b> to create AWS Infrastructure with Terraform &#8211;\u00a0 <a href=\"https:\/\/k21academy.com\/terraform-iac\/provision-aws-infrastructure-with-terraform\/?utm_source=onlineappsdba&amp;utm_medium=referral&amp;utm_campaign=terraform24_october21\" target=\"_blank\" rel=\"noopener noreferrer\"><em><strong>https:\/\/k21academy.com\/terraform24<\/strong><\/em><\/a><\/div>\n<ul class=\"p-rich_text_list p-rich_text_list__bullet\" data-stringify-type=\"unordered-list\" data-indent=\"0\" data-border=\"false\" data-border-radius-top-cap=\"false\" data-border-radius-bottom-cap=\"false\">\n<li data-stringify-indent=\"0\" data-stringify-border=\"0\">What is Terraform?<\/li>\n<li data-stringify-indent=\"0\" data-stringify-border=\"0\">Download and Install Terraform<\/li>\n<li data-stringify-indent=\"0\" data-stringify-border=\"0\">Create AWS IAM Access Key<\/li>\n<li data-stringify-indent=\"0\" data-stringify-border=\"0\">Create EC2 Instance with Terraform<\/li>\n<\/ul>\n<div class=\"p-rich_text_section\"><span class=\"c-emoji c-emoji__medium c-emoji--inline\" data-qa=\"emoji\" data-sk=\"tooltip_parent\"><img decoding=\"async\" src=\"https:\/\/a.slack-edge.com\/production-standard-emoji-assets\/13.0\/google-medium\/1f4ab@2x.png\" alt=\":dizzy:\" aria-label=\"dizzy emoji\" data-stringify-type=\"emoji\" data-stringify-emoji=\":dizzy:\" \/><\/span> To learn Terraform from the industry experts, register for the FREE Class at\u00a0<a class=\"waffle-rich-text-link\" href=\"https:\/\/k21academy.com\/terraform-for-beginners-and-certification-free-class\/?utm_source=onlineappsdba&amp;utm_medium=referral&amp;utm_campaign=terraform02_august21\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/k21academy.com\/terraform02<\/a><\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-68391 size-full\" src=\"https:\/\/k21academy.com\/wp-content\/uploads\/2020\/08\/Terraform_CU_GIF1_ed.gif\" alt=\"\" width=\"1354\" height=\"203\" \/><\/p>\n<div id=\"dpsp-content-bottom\" class=\"dpsp-content-wrapper dpsp-shape-rounded dpsp-size-small dpsp-has-spacing dpsp-has-buttons-count dpsp-show-on-mobile dpsp-button-style-4\">\n<p class=\"dpsp-share-text\">\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Cloud automation is on its pace and various tools\u00a0 are proposed for faster and efficient development\u00a0. One such automation tool [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":17492,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[531],"tags":[],"class_list":["post-17491","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terraform-iac"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Create AWS Infrastructure with Terraform | Terraform AWS Instance<\/title>\n<meta name=\"description\" content=\"Using Terraform you can provision AWS Infrastructure and this blog covers a detailed step-by-step tutorial to create an AWS EC2 instance using Terraform.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create AWS Infrastructure with Terraform | Terraform AWS Instance\" \/>\n<meta property=\"og:description\" content=\"Using Terraform you can provision AWS Infrastructure and this blog covers a detailed step-by-step tutorial to create an AWS EC2 instance using Terraform.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-28T06:40:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-28T06:48:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/AWS-Infrastructure-Terraform.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1431\" \/>\n\t<meta property=\"og:image:height\" content=\"802\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Masroof Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Masroof Ahmad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/\",\"name\":\"How to Create AWS Infrastructure with Terraform | Terraform AWS Instance\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/AWS-Infrastructure-Terraform.jpg\",\"datePublished\":\"2021-10-28T06:40:08+00:00\",\"dateModified\":\"2021-10-28T06:48:10+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"description\":\"Using Terraform you can provision AWS Infrastructure and this blog covers a detailed step-by-step tutorial to create an AWS EC2 instance using Terraform.\",\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/#primaryimage\",\"url\":\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/AWS-Infrastructure-Terraform.jpg\",\"contentUrl\":\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/AWS-Infrastructure-Terraform.jpg\",\"width\":1431,\"height\":802,\"caption\":\"AWS-Infrastructure\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Provision AWS Infrastructure with Terraform?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineappsdba.com\/#website\",\"url\":\"https:\/\/onlineappsdba.com\/\",\"name\":\"\",\"description\":\"Oracle Implementation &amp; Training Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineappsdba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\",\"name\":\"Masroof Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"caption\":\"Masroof Ahmad\"},\"url\":\"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create AWS Infrastructure with Terraform | Terraform AWS Instance","description":"Using Terraform you can provision AWS Infrastructure and this blog covers a detailed step-by-step tutorial to create an AWS EC2 instance using Terraform.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/","og_locale":"en_US","og_type":"article","og_title":"How to Create AWS Infrastructure with Terraform | Terraform AWS Instance","og_description":"Using Terraform you can provision AWS Infrastructure and this blog covers a detailed step-by-step tutorial to create an AWS EC2 instance using Terraform.","og_url":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/","article_published_time":"2021-10-28T06:40:08+00:00","article_modified_time":"2021-10-28T06:48:10+00:00","og_image":[{"width":1431,"height":802,"url":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/AWS-Infrastructure-Terraform.jpg","type":"image\/jpeg"}],"author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/","url":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/","name":"How to Create AWS Infrastructure with Terraform | Terraform AWS Instance","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/#primaryimage"},"image":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/#primaryimage"},"thumbnailUrl":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/AWS-Infrastructure-Terraform.jpg","datePublished":"2021-10-28T06:40:08+00:00","dateModified":"2021-10-28T06:48:10+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"description":"Using Terraform you can provision AWS Infrastructure and this blog covers a detailed step-by-step tutorial to create an AWS EC2 instance using Terraform.","breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/#primaryimage","url":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/AWS-Infrastructure-Terraform.jpg","contentUrl":"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2021\/10\/AWS-Infrastructure-Terraform.jpg","width":1431,"height":802,"caption":"AWS-Infrastructure"},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2021\/10\/28\/provision-aws-infrastructure-with-terraform\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"How to Provision AWS Infrastructure with Terraform?"}]},{"@type":"WebSite","@id":"https:\/\/onlineappsdba.com\/#website","url":"https:\/\/onlineappsdba.com\/","name":"","description":"Oracle Implementation &amp; Training Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineappsdba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb","name":"Masroof Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","caption":"Masroof Ahmad"},"url":"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/17491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/comments?post=17491"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/17491\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media\/17492"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=17491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=17491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=17491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}