{"id":7977,"date":"2017-02-25T12:19:05","date_gmt":"2017-02-25T12:19:05","guid":{"rendered":"https:\/\/dev.fukata.org\/?p=7977"},"modified":"2017-08-11T23:08:00","modified_gmt":"2017-08-11T23:08:00","slug":"terraform%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%93%e3%81%ae%e3%83%96%e3%83%ad%e3%82%b0%e3%82%92aws%e3%81%b8%e7%a7%bb%e8%a1%8c%e3%81%97%e3%81%9f","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/7977\/","title":{"rendered":"terraform\u3092\u4f7f\u3063\u3066\u3053\u306e\u30d6\u30ed\u30b0\u3092AWS\u3078\u79fb\u884c\u3057\u305f"},"content":{"rendered":"
<\/a><\/p>\n \u53bb\u5e74\u3001\u5e74\u672b\u4ed8\u8fd1\u306b\u66f8\u3044\u305f\u8a18\u4e8b\u306e\u4e2d\u3067terraform\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u3068\u66f8\u3044\u305f\u306e\u304c\u3084\u3063\u3068\u5b9f\u73fe\u51fa\u6765\u305f\u3002<\/p>\n <\/p>\n \u3068\u308a\u3042\u3048\u305a\u3001\u4eca\u56de\u4f7f\u3063\u305fterraform\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u3053\u3061\u3089\u3002\u521d\u3081\u3066\u8a66\u3057\u3066\u307f\u305f\u306e\u3067\u307e\u305a\u3044\u6240\u3068\u304b\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3002 \u5927\u90e8\u5206\u3092\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3055\u3093\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3082\u3089\u3063\u305f\u3002 \u3053\u308c\u3092\u6a5f\u306b\u3061\u3083\u3093\u3068terraform\u4f7f\u3063\u3066\u74b0\u5883\u69cb\u7bc9\u3082\u30b3\u30fc\u30c9\u306b\u843d\u3068\u3057\u3066\u3044\u3053\u3046\u3068\u601d\u3046\u3002<\/p>\n VPC\u3084\u3089InternetGateway\u3084\u3089\u624b\u52d5\u3067\u8a2d\u5b9a\u3057\u306a\u304f\u3066\u826f\u304f\u306a\u3063\u305f\u306e\u306f\u975e\u5e38\u306b\u826f\u3044\u3002\u65b0\u305f\u306a\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u308b\u6642\u306b\u6bce\u56de\u306e\u4f5c\u696d\u3060\u3063\u305f\u306e\u3067\u3053\u308c\u3060\u3051\u3067\u3082\u7c21\u7565\u5316\u3055\u308c\u308b\u306e\u306f\u975e\u5e38\u306b\u3042\u308a\u304c\u305f\u3044\u3002\u65e9\u901f\u6b21\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089\u4f7f\u3063\u3066\u3044\u3053\u3046\u3002tfstate\u30d5\u30a1\u30a4\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u5148\u3068\u3057\u3066s3\u3092\u9078\u3079\u308b\u306e\u3082\u9762\u767d\u3044\u3002<\/p>\n homebrew\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308bterraform\u304c0.6\u7cfb\u3067import\u30b3\u30de\u30f3\u30c9\u3068\u304b\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u672c\u5bb6<\/a>\u304b\u30890.8.7\u3092\u843d\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n \u65e2\u306bDigital Ocean\u3067\u3053\u306e\u30d6\u30ed\u30b0\u3092\u516c\u958b\u3057\u3066\u3044\u305f\u306e\u3067Route53\u5468\u308a\u306fimport\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u65e2\u5b58\u306e\u7269\u3092\u53d6\u308a\u8fbc\u3093\u3060\u3002<\/p>\n \u30de\u30c3\u30d7\u306e\u30a2\u30af\u30bb\u30b9\u65b9\u6cd5\u304c\u5909\u308f\u3063\u3066\u305f\u308a\u591a\u5c11\u66f8\u304d\u63db\u3048\u308b\u7b87\u6240\u304c\u3042\u3063\u305f\u3051\u3069\u307b\u307c\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3057\u305f\u3002<\/p>\n \u4e00\u3064\u30cf\u30de\u3063\u305f\u306e\u306f \u3055\u3066\u3001\u6b21\u306f\u4f55\u3092\u8a66\u305d\u3046\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u300c\u30bc\u30ed\u304b\u3089\u4f5c\u308bDeep Learning\u300d\u3092\u8aad\u307f\u7d42\u3048\u306a\u3044\u3068\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u53bb\u5e74\u3001\u5e74\u672b\u4ed8\u8fd1\u306b\u66f8\u3044\u305f\u8a18\u4e8b\u306e\u4e2d\u3067terraform\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u3068\u66f8\u3044\u305f\u306e\u304c\u3084\u3063\u3068\u5b9f\u73fe\u51fa\u6765\u305f\u3002 … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1980],"tags":[803,1131],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/7977"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=7977"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/7977\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=7977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=7977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=7977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\nmain.tf<\/a><\/p>\n
\nAWS\u3067Terraform\u306b\u5165\u9580 \uff5c Developers.IO<\/a><\/p>\naws_instance<\/code> \u306e
associate_public_ip_address<\/code> \u306b
false<\/code> \u3092\u6307\u5b9a\u3057\u3066\u3082\u306a\u305c\u304btfstate\u5185\u3067true\u306b\u306a\u3063\u3066\u3044\u3066\u518d\u5ea6apply\u3092\u884c\u3063\u305f\u969b\u306b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u518d\u4f5c\u6210\u3055\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u3002
associate_public_ip_address<\/code> \u306e\u884c\u3054\u3068\u524a\u9664\u3057\u305f\u3089\u89e3\u6d88\u3057\u305f\u3002\u305f\u3060\u3001\u89e3\u6d88\u3057\u305f\u3068\u8a00\u3063\u3066\u3082false\u306b\u306a\u3063\u305f\u308f\u3051\u3058\u3083\u306a\u304ftfstate\u3082main.tf\u3082true\u306e\u72b6\u614b\u306b\u306a\u3063\u3066\u308b\u3068\u3044\u3046\u3060\u3051\u3002<\/p>\n