<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>guitarrapc_tech</author_name>
  <author_url>https://blog.hatena.ne.jp/guitarrapc_tech/</author_url>
  <blog_title>tech.guitarrapc.cóm</blog_title>
  <blog_url>https://tech.guitarrapc.com/</blog_url>
  <categories>
    <anon>Terraform</anon>
  </categories>
  <description>Terraformの実行結果をoutputで出力するとき、mapやlistから単一文字列(複数行)をHeredocとして出力したいことがあります。 今回はDirectivesとHeredocを使っていい感じの文字列を生成する方法を紹介します。 いい感じの文字列とは いい感じじゃない文字列出力とは Terraformでlist/mapと複数行文字列を組み合わせる 複数行の文字列とHeredoc 文字列の中で変数を展開する - String Interpolation 文字列の中で変数を展開する - STring Directives 複数行文字列とfor処理をいい感じに書く まとめ いい感じの文…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.guitarrapc.com%2Fentry%2F2025%2F01%2F24%2F235108&quot; title=&quot;TerraformのString DirectivesとHeredocを使っていい感じの文字列を生成する - tech.guitarrapc.cóm&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>2025-01-24 23:51:08</published>
  <title>TerraformのString DirectivesとHeredocを使っていい感じの文字列を生成する</title>
  <type>rich</type>
  <url>https://tech.guitarrapc.com/entry/2025/01/24/235108</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
