<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syou6162</author_name>
  <author_url>https://blog.hatena.ne.jp/syou6162/</author_url>
  <blog_title>yasuhisa's blog</blog_title>
  <blog_url>https://www.yasuhisay.info/</blog_url>
  <categories>
    <anon>Terraform</anon>
  </categories>
  <description>「このメンバーの一覧に対して、このリストの一覧の権限の付与したい」ってケース、結構あると思います。「このメンバー一覧に対して、この権限だけを付与したい」という場合はTerraformだとfor_eachで割と簡単に書くことができますが(一重ループ)、タイトルのように複数の集合の要素の組合せ(集合の直積)だとfor_eachが簡単にできません(二重ループ)。あれこれ試行錯誤したので、メモしておきます。 Terraformのsetproductについて 集合の直積についてはTerraformだとsetproductで簡単にできます。ありがたい。 こういう感じ。配列の配列を返してくれます。 &gt; se…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F2021%2F08%2F03%2F173000&quot; title=&quot;集合の組合せに対してTerraformで設定する(setproductとfor_eachを使う) - yasuhisa&amp;#39;s blog&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>2021-08-03 17:30:00</published>
  <title>集合の組合せに対してTerraformで設定する(setproductとfor_eachを使う)</title>
  <type>rich</type>
  <url>https://www.yasuhisay.info/entry/2021/08/03/173000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
