{"id":1601,"date":"2019-09-19T14:34:37","date_gmt":"2019-09-19T11:34:37","guid":{"rendered":"https:\/\/artem.services\/?p=1411"},"modified":"2020-03-02T17:06:53","modified_gmt":"2020-03-02T14:06:53","slug":"1601","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=1601&lang=en","title":{"rendered":"\u00a0FIX ERROR &#8212; Terraform: Blocks of type &quot;tags&quot; are not expected here."},"content":{"rendered":"<p>When trying to make a <strong><em>terraform plan<\/em><\/strong> or\u00a0 <strong><em>terraform apply<\/em><\/strong>, terraform returns the following error:<\/p>\n<pre>Error: Unsupported block type\r\n\r\nBlocks of type \"tags\" are not expected here. Did you mean to define argument\r\n\"tags\"? If so, use the equals sign to assign it a value.<\/pre>\n<p>&nbsp;<\/p>\n<h3>Solution:<\/h3>\n<p>In <strong>terraform<\/strong> versions below the <strong>12<\/strong>, the following syntax was used for &quot;<strong>tags<\/strong>&quot;:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n  tags {\r\n    Name = &quot;MY_TAG_NAME&quot;\r\n  }\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Now after &quot;<strong>tags<\/strong>&quot; you need to add &quot;=&quot;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n  tags = {\r\n    Name = &quot;MY_TAG_NAME&quot;\r\n  }\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When trying to make a terraform plan or\u00a0 terraform apply, terraform returns the following error: Error: Unsupported block type Blocks of type &quot;tags&quot; are not expected here. Did you mean to define argument &quot;tags&quot;? If so, use the equals sign to assign it a value. &nbsp; Solution: In terraform versions below the 12, the following &hellip; <a href=\"https:\/\/artem.services\/?p=1601&#038;lang=en\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c<span class=\"screen-reader-text\"> &quot;\u00a0FIX ERROR &#8212; Terraform: Blocks of type &quot;tags&quot; are not expected here.&quot;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[357],"tags":[361,365,1251,555],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1601"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1601"}],"version-history":[{"count":2,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1601\/revisions"}],"predecessor-version":[{"id":1604,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1601\/revisions\/1604"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}