ããã«ã¡ã¯ï¼ã¤ã³ãã©ã¨ã³ã¸ãã¢ã®æ³ç¬ã§ãã ã¿ãªãããã§ã«ãåãã ã¨æãã¾ãããå
é±æ«ã«AWS SDK for Rubyããªãªã¼ã¹ããã¾ããã
åã¶äººãããããããã ãããªã¨æã£ã¦ãã¾ããããããªãã®ã¤ã³ãã¯ãããã£ãããã§ããã
ãã£ãããªã®ã§ããã®SDKã使ç¨ãã¦EBSããªã¥ã¼ã ã®ã¹ãããã·ã§ãããä½æããã¹ã¯ãªãããä½æãã¾ããã
AWS SDK for Rubyãã¤ã³ã¹ãã¼ã«ããç°å¢ã§cronãªã©ã«ç»é²ããã¨èªåçã«ã¹ãããã·ã§ãããä½æããã¾ãã
â»åä½ç¢ºèªç°å¢ã§ä½¿ç¨ããRubyã®ãã¼ã¸ã§ã³ã¯1.8.7ã§ãã AWS SDK for Rubyã¯RubyGemsã使ç¨ãã¦ç°¡åã«ã¤ã³ã¹ãã¼ã«ãå¯è½ã§ãã
$ sudo gem install aws-sdk
使ç¨ããå ´åã¯ã¹ã¯ãªããã®å¼æ°ã¨ãã¦ä»¥ä¸ã®ãã®ãæå®ãã¦ãã ããã
- 使ç¨ãããªã¼ã¸ã§ã³
- ããã¯ã¢ããã®ä¿åä¸ä»£
- Volume-id
- ãã£ã¹ã¯ãªãã·ã§ã³ã«ã¤ããåå
ã¾ãããªã¼ã¸ã§ã³ã®æå®ã¯ä»¥ä¸ã®ããã«URLã§æå®ãã¦ãã ããã
- ec2.us-east-1.amazonaws.com (ãã¼ã¸ãã¢)
- ec2.us-west-1.amazonaws.com (ã«ã«ãã©ã«ãã¢)
- ec2.eu-west-1.amazonaws.com (ã¨ã¼ããã)
- ec2.ap-southeast-1.amazonaws.com (ã·ã³ã¬ãã¼ã«)
- ec2.ap-northeast-1.amazonaws.com (æ±äº¬)
ã¹ã¯ãªãããä½æããã«ããããã¡ãã®ããã°ãåèã«ããã¦é ãã¾ããã
ä»ä½¿ã£ã¦ãã¹ãããã·ã§ããã®ã¹ã¯ãªããããç½®ãæãã¦ãããããªï½ãªãã¦ä¼ãã§ãã¾ãã