<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>int128</author_name>
  <author_url>https://blog.hatena.ne.jp/int128/</author_url>
  <blog_title>GeekFactory</blog_title>
  <blog_url>https://int128.hatenablog.com/</blog_url>
  <categories>
    <anon>terraform</anon>
    <anon>aws</anon>
  </categories>
  <description>Terraformの小ネタです．プライベートサブネットからInternet facing ALBへのアクセスを許可するため，NATゲートウェイのグローバルIPアドレスをセキュリティグループに追加する必要がありました．Terraformの aws_security_group_rule にはIPアドレスではなくCIDRのリストを指定する必要があります．IPアドレスリストをCIDRリストに変換するにはどう書けばよいのか試行錯誤したのでメモを残しておきます． Terraform v0.12を前提とします． TL;DR resource &quot;aws_security_group_rule&quot; &quot;allow…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2019%2F09%2F10%2F174232&quot; title=&quot;TerraformでIPアドレスリストをCIDRリストに変換する - GeekFactory&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>2019-09-10 17:42:32</published>
  <title>TerraformでIPアドレスリストをCIDRリストに変換する</title>
  <type>rich</type>
  <url>https://int128.hatenablog.com/entry/2019/09/10/174232</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
