EC2 ã¯ä¾¿å©ãªã®ã§ããããã©ã¤ãã¼ã IP ã¢ãã¬ã¹ãå¤æ´ãããªãä¿è¨¼ãç¡ãã®ã§ã/etc/hosts ã«ä»ã®ã¤ã³ã¹ã¿ã³ã¹ã®ã¢ãã¬ã¹ãæ¸ãã¦ããã¦ããããæ¥å¤ãã£ã¦ããå¯è½æ§ãããã¾ãã ããã§ãec2-api-tools ã® ec2-describe-instances ã§ãµã¼ãã¼ã¤ã³ã¹ã¿ã³ã¹ä¸è¦§ãåå¾ã§ãããã¨ãå©ç¨ãã¦ãåãµã¼ãã¼ã® hostname æ å ±ããã/etc/hosts ãèªåçæããã¹ã¯ãªãããæ¸ãã¾ããã http://gist.github.com/479339 大ã¾ããªæµãã¯ä»¥ä¸ã§ãã ec2-describe-instances ã§ã¤ã³ã¹ã¿ã³ã¹ä¸è¦§åå¾ åã¤ã³ã¹ã¿ã³ã¹ã®åå解決ã㦠IP ã¢ãã¬ã¹åå¾ ssh ã§ç¹ãã«è¡ã£ã¦ hostname ã³ãã³ãã®çµæãåå¾ /etc/hosts ã®å 容ãçæ ã²ã¨ã¤ã®ãµã¼ãã¼ä¸ã§ cron ã§ãã®ã¹ã¯ãªãããèµ°ããã¦ã
{{#tags}}- {{label}}
{{/tags}}