<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tkuchiki</author_name>
  <author_url>https://blog.hatena.ne.jp/tkuchiki/</author_url>
  <blog_title>tkuchikiの日記</blog_title>
  <blog_url>https://tkuchiki.hatenablog.com/</blog_url>
  <categories>
    <anon>AWS</anon>
    <anon>CLI</anon>
    <anon>コマンド</anon>
    <anon>python</anon>
  </categories>
  <description>aws ec2 describe-instances が返す json を parse して、 /etc/hosts に private ip, name tag を追記するスクリプトです(name tag を hostname としてる場合を想定しています)。 aws configure をしている前提で書いていますが、 そうでない場合は、適宜 region, access key, secret key を引数に取れば動くはずです。 fp.write の部分を print に書き換えて表示するだけにしたり、 i.get('InstanceId') を追加して、instance id を表示…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftkuchiki.hatenablog.com%2Fentry%2F2014%2F05%2F31%2F011038&quot; title=&quot;ec2 instance の name tag と private ip を /etc/hosts に追記する - tkuchikiの日記&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>2014-05-31 01:10:38</published>
  <title>ec2 instance の name tag と private ip を /etc/hosts に追記する</title>
  <type>rich</type>
  <url>https://tkuchiki.hatenablog.com/entry/2014/05/31/011038</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
