2016-12-01ãã1ã¶æéã®è¨äºä¸è¦§
module "hoge" { source = "${path.module}/hoge" } ã¨ãã£ã¦ãã * hoge: module source cannot contain interpolations ã§ãã¯ãããã
åã«ãããæ¸ãããã ãã©ããããªãã¨ããå¿ è¦ãªãã£ãã mpon.hatenablog.com ãã£ã¡ã§ããã£ããããªãããAWSã®ãã¨ä½ãåãã£ã¦ãªã証æ ã§ããã docs.aws.amazon.com
github.com quipper.hatenablog.com Good
追è¨:ããããuser-dataããããã¨ãç¥ããªãã£ãã®ã§ãã£ã¡ã使ãã www.mpon.me elastic ipã§æ¥ç¶ãããªã ãããªé¢¨ã«ç´ ç´ã«ï¼èªåçã«ã¯ï¼æ¸ãã¨Elastic IPãããå ã«EC2ãå ã«ä½ããã¨ãã¡ããã ã§ãprivate ipã§sshæ¥ç¶ãããã¨ããããããããããã¤â¦
moduleã®èª¤è§£ ä½ãããã£ã¦ãªãã£ãã module使ãã¨å¤æ°ã¨ããscopeåã§ãããããããªã¼ã£ã¦æã£ã¦ããã©ãresourceãscopeåãããã£ã¦ãã¨ã ã£ãã ã¾ãéã«è¨ãã°ãmoduleå ã«resourceåã¯è¢«ããªãããã«æ°ãã¤ããå¿ è¦ããªãã¨ãè¨ãããã©ã terraformâ¦
NAMEã«TYPEãå ¥ãããã©ãã çµæ§ããã¸ã§ã¯ãã«ãã£ã¦ãã©ãã©ã§ä»ã®è¨èªã§ããããã¬ã¤ãã©ã¤ã³ã¿ãããªã®ããªãæ°ãããã å人çã«ã¯resourceã®TYPEã§ç¹å®ã§ããããå ¥ããªãæ¹ãããããªã¨ããæ°ã«ãªã£ã¦ããã resource "aws_vpc" "dev_vpc_01" {} resâ¦