{"image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/w/winebarrel/20120503/20120503171946.png","title":" Security Group\u3092Graphviz\u3067\u53ef\u8996\u5316\u3059\u308b","blog_url":"https://so-wh.at/","height":"190","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20120503%2Fp1\" title=\" Security Group\u3092Graphviz\u3067\u53ef\u8996\u5316\u3059\u308b - so what\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"winebarrel","published":"2012-05-03 00:00:00","description":"\u3068\u308a\u3042\u3048\u305a\u975eVPC\u3060\u3051\u3002 ec2-describe-group | awk -F'\\t' 'BEGIN{print \"digraph G {\"} /^GROUP/{vpc = $6 ? 1 : 0} $9~/CIDR/{src=$10} $9~/USER/{gsub(/NAME /,\"\",$11); src=$11} !vpc && /^PERMISSION/{dst=$3; pair=sprintf(\"\\\"%s\\\" -> \\\"%s\\\"\",src,dst); label=$5\":\"$6\":\"$7; if (grants[pair]) {grants[pair]=grants[pair]\" \"l\u2026","provider_url":"https://hatena.blog","type":"rich","width":"100%","author_url":"https://blog.hatena.ne.jp/winebarrel/","blog_title":"so what","categories":["EC2"],"provider_name":"Hatena Blog","url":"https://so-wh.at/entry/20120503/p1"}