Upgrade to Pro — share decks privately, control downloads, hide ads and more …

sacloud tools

sacloud tools

2021/04/02 さくらのマイクロコミュニティ #1(https://sakura-tokyo.connpass.com/event/207782/) での発表資料

Kazumichi Yamamoto

April 02, 2021
Tweet

More Decks by Kazumichi Yamamoto

Other Decks in Technology

Transcript

  1. 4BDMPVEͷ"1*$-*ؔ࿈πʔϧ !ZBNBNPUPGFCD ͘͞ΒͷϚΠΫϩίϛϡχςΟ $-*"1*Ϣʔβʔͷձ 

  2. ࣗݾ঺հ !ZBNBNPUP@GFCD

  3. Sacloud https://github.com/sacloud

  4. HJUIVCDPNTBDMPVE ΦʔΨχθʔγϣϯ

  5. ࠓ೔ͷ಺༰ n HJUIVCDPNTBDMPVEͷ঺հ n ࠷ۙͷΞοϓσʔτ

  6. n ࣭໰͸આ໌ͷ్தͰ΋0, ଟ෼࣌ؒ༨ΔͷͰ n εϥΠυࣸਅͷ4/4౤ߘ0,

  7. HJUIVCDPNTBDMPVEͷ πʔϧ঺հ

  8. ͘͞ΒͷΫϥ΢υͷ$-*

  9. )BTIJ$PSQϓϩμΫτؔ࿈ Ћ

  10. QVMVNJTBLVSBDMPVE ͰΠϯϑϥߏங $ pulumi up 1VMVNJ͸༷ʑͳݴޠΛαϙʔτ

  11. "1*ϥΠϒϥϦܥ

  12. 0QFO"1* 4QFDJGJDBUJPOW ։ൃத

  13. 0QFO"1* 4QFDJGJDBUJPOW ։ൃத IUUQTTBDMPVEHJUIVCJPTDIFNBEFGJOJUJPOTW

  14. ࠷ۙͷΞοϓσʔτ

  15. W΁ͷϝδϟʔόʔδϣϯΞοϓ https://febc-yamamoto.hatenablog.jp/entry/usacloud-v1

  16. None
  17. 8FC"TTFNCMZରԠ ʙ$ISPNF্Ͱ࣮ߦՄೳʹʙ https://chrome.google.com/webstore/detail/usacon/ihcpjahhejhblhadomiffpnfmfaklpeh

  18. None
  19. 8FC"TTFNCMZରԠʹ͸ͪΐͬͱ໰୊͕ɺɺɺ ɾ݄ϦϦʔε༧ఆͷ$ISPNFҎ߱͸ಈ͔ͳ͘ͳΔ͔΋ ˠ ΫϩεΦϦδϯ෼཭͠ͳ͍ͱ4IBSFE"SSBZ#VGGFS͕࢖͑ͳ͘ͳΔ ˠ Ϩεϙϯεʹ$001$0&1ϔομ͕ඞཁ ɾͳͷͰࠓ݄͋ͨΓେ෯ͳΞοϓσʔτΛ༧ఆ IUUQTEFWFMPQFSTKQHPPHMFCMPHDPNDISPNFTIBSFEBSSBZCVGGFSIUNM

  20. KR HPKR ͷ૊ΈࠐΈ

  21. SFTUαϒίϚϯυ

  22. SFTUαϒίϚϯυ ͘͞ΒͷΫϥ΢υ "1*υΩϡϝϯτ $ usacloud rest /server

  23. SFTUαϒίϚϯυ ͘͞ΒͷΫϥ΢υ "1*υΩϡϝϯτ $ usacloud rest -X PUT /server/123456789012/power

  24. ͘͞ΒͷΫϥ΢υͷ࠷৽ػೳ΁ͷରԠ ྫγϣʔτϝοηʔδαʔϏεͷ8FC051ରԠϝοηʔδͷૹ৴ ૹ৴͞Εͨϝοηʔδ

  25. ͘͞ΒͷΫϥ΢υͷ࠷৽ػೳ΁ͷରԠ ྫαʔό΁ͷ/.*ૹ৴ ʹ௥Ճ͞Εͨػೳ $ usacloud server send-nmi <ID or Name

    or Tags>
  26. QBDLFSJOJU ΁ͷରԠ $ packer init (JU)VC3FMFBTFT͔Β ϓϥάΠϯΛμ΢ϯϩʔυ )$-ςϯϓϨʔτதʹ ඞཁͳϓϥάΠϯΛఆٛ

  27. (JU)VC$POUBJOFS3FHJTUSZରԠ %PDLFS)VCͰͷެ։΋ܧଓ $ docker run ghcr.io/sacloud/packer

  28. 5FSSBGPSN1MVHJOT4%,WରԠ தڃऀҎ্޲͚ EFMWFͳͲͷσόοΨΛΞλονՄೳʹ *%& *OUFMMJ+*%&" Ͱεςοϓ࣮ߦ

  29. ऴΘΓʹ

  30. Sacloud https://github.com/sacloud HJUIVCDPNTBDMPVEͰπʔϧΛެ։ͯ͠Έ·ͤΜ͔ʁ

  31. ͋ͱ͸ͪ͜ΒͰ ͜ͷޙͷ࠙਌ձ 4BDMPVEͷ4MBDLϫʔΫεϖʔε IUUQTTBDMPVETMBDLDPN PS !ZBNBNPUP@GFCD