<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kamatama_41</author_name>
  <author_url>https://blog.hatena.ne.jp/kamatama_41/</author_url>
  <blog_title>かまたま日記3</blog_title>
  <blog_url>https://kamatama41.hatenablog.com/</blog_url>
  <categories>
    <anon>Terraform</anon>
  </categories>
  <description>version Terraform 0.6.16 本文 ドキュメント にも書いてあったのですが、Terraformで複数リソースを一気に定義するときに count という項目を使うのですが、ここでは直接数字を入力するか、 variables で定義した値に対するinterpolationしか使えないようです。 例えばこんな感じで、AWSのsubnetごとに1つEC2インスタンスを作るようなtfファイルを書いた場合 resource &quot;aws_subnet&quot; &quot;foo&quot; { count = 2 cidr_block = &quot;${format(&quot;10.1.%d.0/24&quot;, count.index)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkamatama41.hatenablog.com%2Fentry%2F2016%2F07%2F28%2F023606&quot; title=&quot;Terraformのcountでvariable以外のinterpolationを使えない - かまたま日記3&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-07-28 02:36:06</published>
  <title>Terraformのcountでvariable以外のinterpolationを使えない</title>
  <type>rich</type>
  <url>https://kamatama41.hatenablog.com/entry/2016/07/28/023606</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
