{"id":2589,"date":"2021-01-18T18:35:34","date_gmt":"2021-01-18T17:35:34","guid":{"rendered":"https:\/\/geko2.factoryfy.com\/a-quick-view-of-modules-in-terraform\/"},"modified":"2021-11-04T09:41:40","modified_gmt":"2021-11-04T08:41:40","slug":"a-quick-view-of-modules-in-terraform","status":"publish","type":"post","link":"https:\/\/geko.cloud\/en\/a-quick-view-of-modules-in-terraform\/","title":{"rendered":"A quick view of modules in Terraform"},"content":{"rendered":"<h2 class=\"western\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"color: #404040;\"><span style=\"font-size: xx-large;\">I<\/span><\/span><span style=\"color: #404040;\"><span style=\"font-size: xx-large;\">ntroduction<\/span><\/span><\/span><\/h2>\n<p><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"color: #3a3a3a;\"><span style=\"font-size: medium;\">Modules in <strong>Terraform<\/strong> are a collection of resources that can be linked or just created individually. When we call a module, we are calling a file with a bunch of resources with some parameters inside, parameters we need either to specify in the resource itself or <\/span><\/span><span style=\"color: #3a3a3a;\"><span style=\"font-size: medium;\">in another file which stores <\/span><\/span><span style=\"color: #3a3a3a;\"><span style=\"font-size: medium;\">our variables.<\/span><\/span><\/span><\/p>\n<h2>Why do we use Terraform?<\/h2>\n<ul>\n<li><span style=\"color: #000000;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">It is a very useful tool to develop, change and have a versioning of our infrastructure in an efficient and safe way.<\/span><\/span><\/span><\/li>\n<li><span style=\"color: #000000;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">It is a tool that allows you to define infrastructure as code and enables you to change and track the infrastructure with ease.<\/span><\/span><\/span><\/li>\n<li><span style=\"color: #000000;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">It is independent of the platform or \u2018cloud agnostic\u2019 and allows working with multiple cloud providers.<\/span><\/span><\/span><\/li>\n<\/ul>\n<h3 class=\"western\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"color: #404040;\"><span style=\"font-size: large;\">What do we need for this lab?<\/span><\/span><\/span><\/h3>\n<ul>\n<li><span style=\"font-family: Open Sans, sans-serif;\"><strong>Terraform<\/strong> installed. In this case w<\/span><span style=\"font-family: 'Open Sans', sans-serif;\">e run v.0.12.7.<\/span><\/li>\n<li><span style=\"font-family: Open Sans, sans-serif;\">In our case, we are using <strong>AWS<\/strong> as our <strong>Cloud Provider<\/strong>, so we need a user with programmatic access. We need as well to give access to this user with the proper IAM Policy.<\/span><\/li>\n<li><span style=\"font-family: Open Sans, sans-serif;\">Your preferred code editor.<\/span><\/li>\n<\/ul>\n<h2 class=\"western\"><span style=\"color: #404040;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: xx-large;\">Let\u2019s get started!<\/span><\/span><\/span><\/h2>\n<p><span style=\"font-family: Open Sans, sans-serif;\">Usually, first we should either set up a <strong>Terraform<\/strong> module with our required parameters or just get some official module from the network. In our case, I did myself a module with an S3 Bucket and its own policy and therefore, I specify what options I\u2019d like the module to have.<\/span><\/p>\n<p><span style=\"font-family: Open Sans, sans-serif;\">It\u2019d look something like this:<\/span><\/p>\n<div class=\"wp-block-codemirror-blocks code-block\">\n<pre class=\"CodeMirror\" data-setting=\"{\">resource \"aws_s3_bucket\" \"this\" {\r\n  bucket            = var.bucket_name\r\n  acl               = var.type_acl\r\n  force_destroy     = var.destroy\r\n\r\n  tags = {\r\n    Name            = var.tag_name\r\n  }\r\n  versioning {\r\n    enabled         = var.versioning\r\n  } \r\n}\r\n\r\nresource \"aws_s3_bucket_policy\" \"this\" {\r\n  bucket = var.bucket_name\r\n  policy = templatefile(\"${path.module}\/templates\/s3_origin_access_identity.json\", {\r\n    origin_access_identity_arn         = aws_cloudfront_origin_access_identity.this.iam_arn,\r\n    origin_access_identity_bucket_name = var.bucket_name\r\n  })\r\n}<\/pre>\n<\/div>\n<p><span style=\"font-family: Open Sans, sans-serif;\">As you may noticed, everything is \u201c<i><b>variablized<\/b><\/i><em>\u201d<b><\/b><\/em><i><b>. <\/b><\/i>Hence, we\u2019ll need to create a file with our variables stored with their custom values.<\/span><\/p>\n<p><span style=\"font-family: Open Sans, sans-serif;\">In the same folder we have our file \u201cmain.tf\u201d, we create our \u201cvariables.tf\u201d:<\/span><\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{\">### S3 VARIABLES\r\n\r\nvariable \"bucket_name\"      { }\r\nvariable \"tag_name\"         { }\r\nvariable \"type_acl\"         { }\r\nvariable \"versioning\"       { }\r\nvariable \"destroy\"          { }\r\nvariable \"aliases\"          { }\r\nvariable \"certificate_arn\"  { }<\/pre>\n<\/div>\n<p><span style=\"font-family: Open Sans, sans-serif;\">In this particular case, you may ask yourselves why these variables don\u2019t have any value stored. And the answer is, we\u2019re using a main file called \u201cterragrunt.hcl\u201d which will store all our values when we call the module.<\/span><\/p>\n<p><span style=\"font-family: Open Sans, sans-serif;\">Another thing that may be confusing is how to specfiy the bucket policy. We can either specifyit with a heredoc file (EOF) or straightaway with a function of <strong>Terraform<\/strong> called \u201ctemplatefile\u201d.<\/span><\/p>\n<p><span style=\"font-family: Open Sans, sans-serif;\">The first example is in <strong>Terraform Documentation<\/strong>, a website that I strongly recommend you to visit to understand how powerful modules and its attributes are. <\/span><\/p>\n<p><span style=\"font-family: Open Sans, sans-serif;\">The second example, and the one we used, it\u2019d look something like this:<\/span><\/p>\n<p><span style=\"font-family: Open Sans, sans-serif;\">On the same folder, we must have a folder called \u201ctemplates\u201d and inside, introduce the bucket policy as a JSON file.<\/span><\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{\">{\r\n    \"Version\": \"2012-10-17\",\r\n    \"Id\": \"PolicyForCloudFrontPrivateS3Content\",\r\n    \"Statement\": [\r\n        {\r\n            \"Effect\": \"Allow\",\r\n            \"Principal\": {\r\n                \"AWS\": \"${origin_access_identity_arn}\"\r\n            },\r\n            \"Action\": \"s3:GetObject\",\r\n            \"Resource\": \"arn:aws:s3:::${origin_access_identity_bucket_name}\/*\"\r\n        }\r\n    ]\r\n  }<\/pre>\n<\/div>\n<p><span style=\"font-family: Open Sans, sans-serif;\">You may\u2019ve noticed we introduced ${origin_access_identity_arn} and <\/span><span style=\"font-family: 'Open Sans', sans-serif;\">${origin_access_identity_bucket_name} and this is because we want to set such values manually like this:<\/span><\/p>\n<p>&nbsp;<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{\">policy = templatefile(\"${path.module}\/templates\/s3_origin_access_identity.json\", {\r\n    origin_access_identity_arn         = aws_cloudfront_origin_access_identity.this.iam_arn,\r\n    origin_access_identity_bucket_name = var.bucket_name\r\n  })<\/pre>\n<\/div>\n<p><span style=\"font-family: Open Sans, sans-serif;\">As you see, we introduce the<i> \u201c<\/i><i>arn\u201d<\/i><i> <\/i>calling another resource called \u201caws_cloudfront_origin_access_identity\u201d and the bucket name we introduce it as we have seen before with our variables file.<\/span><\/p>\n<p><span style=\"font-family: Open Sans, sans-serif;\">Now you just need to specify your <strong>Terraform<\/strong> provider and to call the module with another file with the values you have specified and deploy it:<\/span><\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{\">provider \"aws\" {\r\n  region     = var.region\r\n  version    = \"~&gt; 2.0\"\r\n}\r\n\r\nprovider \"aws\" {\r\n  alias  = \"aws_us_east_1\"\r\n  region = \"us-east-1\"\r\n}\r\nmodule \"s3\" {\r\n    source               = \"..\/..\/..\/..\/..\/..\/modules\/s3-cloudfront\/\"\r\n    bucket_name          = var.bucket_name\r\n    tag_name             = var.tag_name\r\n    type_acl             = var.type_acl\r\n    versioning           = var.versioning\r\n    destroy              = var.destroy\r\n    aliases              = var.aliases\r\n    certificate_arn      = var.certificate_arn    \r\n}<\/pre>\n<\/div>\n<p><span style=\"font-family: Open Sans, sans-serif;\">Deploy it with a<strong> terraform init<\/strong>, terraform plan and terraform apply.<\/span><\/p>\n<h2 class=\"western\"><span style=\"color: #404040;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: xx-large;\">Conclusion<\/span><\/span><\/span><\/h2>\n<p><span style=\"color: #3a3a3a;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">So, we saw how to deploy an <strong>S3 Bucket<\/strong> with its policy with <strong>Terraform<\/strong>. I strongly recommend you visit the official <a href=\"https:\/\/registry.terraform.io\/providers\/hashicorp\/aws\/latest\/docs\">Terraform Documentation<\/a> to keep learning about modules and all related to them.<\/span><\/span><\/span><\/p>\n<p><span style=\"color: #3a3a3a;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">I invite you <\/span><\/span><\/span><span style=\"color: #3a3a3a;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">all in case you need <\/span><\/span><\/span><span style=\"color: #3a3a3a;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">information about the <\/span><\/span><\/span><span style=\"color: #c5d31e;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\"><b><strong><a href=\"https:\/\/geko.cloud\/en\/devops\/\">DevOps<\/a> <\/strong><\/b><\/span><\/span><\/span><span style=\"color: #3a3a3a;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">world, <\/span><\/span><\/span><span style=\"color: #3a3a3a;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">to<\/span><\/span><\/span> <span style=\"color: #009e00;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\"><a href=\"https:\/\/geko.cloud\/en\/contact\/\">contact us<\/a> <\/span><\/span><\/span><span style=\"color: #3a3a3a;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">and keep checking <\/span><\/span><\/span><span style=\"color: #009e00;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\"><a href=\"https:\/\/geko.cloud\/en\/blog\/labs\/\">our blog<\/a> <\/span><\/span><\/span><span style=\"color: #3a3a3a;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">to find other useful <\/span><\/span><\/span><span style=\"color: #3a3a3a;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">posts<\/span><\/span><\/span><span style=\"color: #3a3a3a;\"><span style=\"font-family: Open Sans, sans-serif;\"><span style=\"font-size: medium;\">.<\/span><\/span><\/span><\/p>\n<p><a href=\"https:\/\/geko.cloud\/en\/contact\/\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3265\" src=\"https:\/\/geko2.factoryfy.com\/wp-content\/uploads\/geko-1-150x150.png\" alt=\"\" width=\"82\" height=\"82\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Modules in Terraform are a collection of resources that can be linked or just created individually. When we call a module, we are calling a file with a bunch of resources with some parameters inside, parameters we need either to specify in the resource itself or in another file which stores our variables. Why [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2088,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[67],"tags":[72,89],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>A quick view of modules in Terraform - Geko Cloud<\/title>\n<meta name=\"description\" content=\"Learn how to deploy an S3 Bucket and policy with Terraform in our blog post, explained by a Terraform expert.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A quick view of modules in Terraform - Geko Cloud\" \/>\n<meta property=\"og:description\" content=\"Learn how to deploy an S3 Bucket and policy with Terraform in our blog post, explained by a Terraform expert.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/\" \/>\n<meta property=\"og:site_name\" content=\"Geko Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-18T17:35:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-04T08:41:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/geko.cloud\/wp-content\/uploads\/terraform-portada_mesa-de-trabajo-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2780\" \/>\n\t<meta property=\"og:image:height\" content=\"1563\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jose Luis S\u00e1nchez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@geko_cloud\" \/>\n<meta name=\"twitter:site\" content=\"@geko_cloud\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/\"},\"author\":{\"name\":\"Jose Luis S\u00e1nchez\",\"@id\":\"https:\/\/geko.cloud\/es\/#\/schema\/person\/d06aff498ebfbc75b5010ebe92af41ed\"},\"headline\":\"A quick view of modules in Terraform\",\"datePublished\":\"2021-01-18T17:35:34+00:00\",\"dateModified\":\"2021-11-04T08:41:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/\"},\"wordCount\":573,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/geko.cloud\/es\/#organization\"},\"image\":{\"@id\":\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/geko.cloud\/wp-content\/uploads\/terraform-portada_mesa-de-trabajo-1.png\",\"keywords\":[\"AWS\",\"Terraform\"],\"articleSection\":[\"Labs\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/\",\"url\":\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/\",\"name\":\"A quick view of modules in Terraform - Geko Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/geko.cloud\/es\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/geko.cloud\/wp-content\/uploads\/terraform-portada_mesa-de-trabajo-1.png\",\"datePublished\":\"2021-01-18T17:35:34+00:00\",\"dateModified\":\"2021-11-04T08:41:40+00:00\",\"description\":\"Learn how to deploy an S3 Bucket and policy with Terraform in our blog post, explained by a Terraform expert.\",\"breadcrumb\":{\"@id\":\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#primaryimage\",\"url\":\"https:\/\/geko.cloud\/wp-content\/uploads\/terraform-portada_mesa-de-trabajo-1.png\",\"contentUrl\":\"https:\/\/geko.cloud\/wp-content\/uploads\/terraform-portada_mesa-de-trabajo-1.png\",\"width\":2780,\"height\":1563,\"caption\":\"Terraform logo\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/geko.cloud\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A quick view of modules in Terraform\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/geko.cloud\/es\/#website\",\"url\":\"https:\/\/geko.cloud\/es\/\",\"name\":\"Geko Cloud\",\"description\":\"Servicios de consultor\u00eda cloud y devops\",\"publisher\":{\"@id\":\"https:\/\/geko.cloud\/es\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/geko.cloud\/es\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/geko.cloud\/es\/#organization\",\"name\":\"Geko Cloud\",\"url\":\"https:\/\/geko.cloud\/es\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/geko.cloud\/es\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/geko.cloud\/wp-content\/uploads\/2021\/10\/geko_logo-positivo.png\",\"contentUrl\":\"https:\/\/geko.cloud\/wp-content\/uploads\/2021\/10\/geko_logo-positivo.png\",\"width\":1650,\"height\":809,\"caption\":\"Geko Cloud\"},\"image\":{\"@id\":\"https:\/\/geko.cloud\/es\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/geko_cloud\",\"https:\/\/www.instagram.com\/gekocloud\/\",\"https:\/\/www.linkedin.com\/company\/gekocloud\",\"https:\/\/www.youtube.com\/channel\/UC5EFLCqUM7fEaXSa_0nWowQ\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/geko.cloud\/es\/#\/schema\/person\/d06aff498ebfbc75b5010ebe92af41ed\",\"name\":\"Jose Luis S\u00e1nchez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/geko.cloud\/es\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ebfd055d4dba456220c682523fcc237c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ebfd055d4dba456220c682523fcc237c?s=96&d=mm&r=g\",\"caption\":\"Jose Luis S\u00e1nchez\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A quick view of modules in Terraform - Geko Cloud","description":"Learn how to deploy an S3 Bucket and policy with Terraform in our blog post, explained by a Terraform expert.","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:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/","og_locale":"en_US","og_type":"article","og_title":"A quick view of modules in Terraform - Geko Cloud","og_description":"Learn how to deploy an S3 Bucket and policy with Terraform in our blog post, explained by a Terraform expert.","og_url":"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/","og_site_name":"Geko Cloud","article_published_time":"2021-01-18T17:35:34+00:00","article_modified_time":"2021-11-04T08:41:40+00:00","og_image":[{"width":2780,"height":1563,"url":"https:\/\/geko.cloud\/wp-content\/uploads\/terraform-portada_mesa-de-trabajo-1.png","type":"image\/png"}],"author":"Jose Luis S\u00e1nchez","twitter_card":"summary_large_image","twitter_creator":"@geko_cloud","twitter_site":"@geko_cloud","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#article","isPartOf":{"@id":"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/"},"author":{"name":"Jose Luis S\u00e1nchez","@id":"https:\/\/geko.cloud\/es\/#\/schema\/person\/d06aff498ebfbc75b5010ebe92af41ed"},"headline":"A quick view of modules in Terraform","datePublished":"2021-01-18T17:35:34+00:00","dateModified":"2021-11-04T08:41:40+00:00","mainEntityOfPage":{"@id":"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/"},"wordCount":573,"commentCount":0,"publisher":{"@id":"https:\/\/geko.cloud\/es\/#organization"},"image":{"@id":"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#primaryimage"},"thumbnailUrl":"https:\/\/geko.cloud\/wp-content\/uploads\/terraform-portada_mesa-de-trabajo-1.png","keywords":["AWS","Terraform"],"articleSection":["Labs"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/","url":"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/","name":"A quick view of modules in Terraform - Geko Cloud","isPartOf":{"@id":"https:\/\/geko.cloud\/es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#primaryimage"},"image":{"@id":"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#primaryimage"},"thumbnailUrl":"https:\/\/geko.cloud\/wp-content\/uploads\/terraform-portada_mesa-de-trabajo-1.png","datePublished":"2021-01-18T17:35:34+00:00","dateModified":"2021-11-04T08:41:40+00:00","description":"Learn how to deploy an S3 Bucket and policy with Terraform in our blog post, explained by a Terraform expert.","breadcrumb":{"@id":"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#primaryimage","url":"https:\/\/geko.cloud\/wp-content\/uploads\/terraform-portada_mesa-de-trabajo-1.png","contentUrl":"https:\/\/geko.cloud\/wp-content\/uploads\/terraform-portada_mesa-de-trabajo-1.png","width":2780,"height":1563,"caption":"Terraform logo"},{"@type":"BreadcrumbList","@id":"https:\/\/geko.cloud\/es\/una-vista-rapida-de-los-modulos-de-terraform\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/geko.cloud\/en\/"},{"@type":"ListItem","position":2,"name":"A quick view of modules in Terraform"}]},{"@type":"WebSite","@id":"https:\/\/geko.cloud\/es\/#website","url":"https:\/\/geko.cloud\/es\/","name":"Geko Cloud","description":"Servicios de consultor\u00eda cloud y devops","publisher":{"@id":"https:\/\/geko.cloud\/es\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/geko.cloud\/es\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/geko.cloud\/es\/#organization","name":"Geko Cloud","url":"https:\/\/geko.cloud\/es\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/geko.cloud\/es\/#\/schema\/logo\/image\/","url":"https:\/\/geko.cloud\/wp-content\/uploads\/2021\/10\/geko_logo-positivo.png","contentUrl":"https:\/\/geko.cloud\/wp-content\/uploads\/2021\/10\/geko_logo-positivo.png","width":1650,"height":809,"caption":"Geko Cloud"},"image":{"@id":"https:\/\/geko.cloud\/es\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/geko_cloud","https:\/\/www.instagram.com\/gekocloud\/","https:\/\/www.linkedin.com\/company\/gekocloud","https:\/\/www.youtube.com\/channel\/UC5EFLCqUM7fEaXSa_0nWowQ"]},{"@type":"Person","@id":"https:\/\/geko.cloud\/es\/#\/schema\/person\/d06aff498ebfbc75b5010ebe92af41ed","name":"Jose Luis S\u00e1nchez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/geko.cloud\/es\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ebfd055d4dba456220c682523fcc237c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ebfd055d4dba456220c682523fcc237c?s=96&d=mm&r=g","caption":"Jose Luis S\u00e1nchez"}}]}},"_links":{"self":[{"href":"https:\/\/geko.cloud\/en\/wp-json\/wp\/v2\/posts\/2589"}],"collection":[{"href":"https:\/\/geko.cloud\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geko.cloud\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geko.cloud\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/geko.cloud\/en\/wp-json\/wp\/v2\/comments?post=2589"}],"version-history":[{"count":3,"href":"https:\/\/geko.cloud\/en\/wp-json\/wp\/v2\/posts\/2589\/revisions"}],"predecessor-version":[{"id":5272,"href":"https:\/\/geko.cloud\/en\/wp-json\/wp\/v2\/posts\/2589\/revisions\/5272"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/geko.cloud\/en\/wp-json\/wp\/v2\/media\/2088"}],"wp:attachment":[{"href":"https:\/\/geko.cloud\/en\/wp-json\/wp\/v2\/media?parent=2589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geko.cloud\/en\/wp-json\/wp\/v2\/categories?post=2589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geko.cloud\/en\/wp-json\/wp\/v2\/tags?post=2589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}