Terraform入門 / terraform-guide

12a5cec7a54018170b1a009731acf477?s=47 VTRyo
September 14, 2017

Terraform入門 / terraform-guide

12a5cec7a54018170b1a009731acf477?s=128

VTRyo

September 14, 2017
Tweet

Transcript

  1. 5FSSBGPSNೖ໳ 5FSSBGPSNʹೖ໳ͯ͠ΠϯϑϥΛָ͠΋͏ *OGSB43&ɹ3:0 

  2. ໨࣍ ɾࣗݾ঺հ ɾ5FSSBGPSNͬͯԿʁ ɾଞͷࣗಈԽπʔϧͱͷҧ͍͸ʁ ɾ"84Λࣗಈߏஙͯ͠ΈΑ͏ʂ ɾUGϑΝΠϧͷಡΈํߨ࠲ ɾUFSSBGPSNUGTUBUFΛ஌Δ ɾศརͳUFSSBGPSNJNQPSUΛ஌Δ

  3. ࣗݾ঺հ ϓϩϑΝΠϧ ɾ౦ژ౎ҏ౾େౡग़਎ ɾ๭ࢲେ৺ཧֶՊࣾձ৺ཧֶઐ߈ ɾ4*ۀք4&4ΠϯϑϥΤϯδχΞͱͯ͠ΩϟϦΞελʔτ ɾݱࡏ͸8&#ܥاۀͷΠϯϑϥΤϯδχΞ ɾٕज़ϒϩάझຯͷൃ৴ ʢIUUQTCMPHWUSZPNFʣ

  4. ฐࣾͷओͳٕज़ͱकඋൣғ ඒӢ͜ͷ͸ ʢ$7্ࡔ͢ΈΕʣ

  5. 5FSSBGPSN͸ɺຐ๏ͷΑ͏ʹΠϯϑϥΛߏங͢Δ -FUT&OKPZ5FSSBGPSN

  6. 5FSSBGPSNͬͯԿʁ ɾ7BHSBOUͰ༗໊ͳ)BTIJ$PSQͷ)BTIJNPUP͕։ൃ ɾίʔυͰΠϯϑϥΛߏஙɾมߋɾ؅ཧͰ͖Δπʔϧ ɾ༷ʑͳΫϥ΢υϦιʔεΛαϙʔτ͍ͯ͠Δ ɾطଘͷϦιʔε΋؆୯ʹίʔυԽͰ͖Δ ɾ)$-ͱ͍͏+40/Λվ଄ͨ͠ಠࣗͷݴޠʢίϝϯτ Ξ΢τػೳ͕͋Δʣ (JUIVCɿIUUQTHPPHMLF.46E

  7. ɾ൒೥͘Β͍લ·Ͱ͸όά΋ଟ͘ɺऔѻ͕େมͩͬ ͨ໛༷ ɾ5FSSBGPSN͸Ξοϓσʔτ͕සൟʹ͋Γɺ։ൃ εϐʔυ͕଎͍ ɾ࠷ۙ͸҆ఆͯ͠Πϯϑϥߏங͕Ͱ͖ΔΑ͏ʹͳͬ ͖ͯͨʂ ɾνϟϯεʂʂ 5FSSBGPSNͬͯԿʁ (JUIVCɿIUUQTHPPHMLF.46E

  8. UFSSBGPSN͸ͨ͘͞ΜͷϝϦοτ͕͋Δ ɾਓҝతϛεͷճආ ɾߏங޻਺ͷ࡟ݮ ɾϦιʔε࡟আ๨Εͷճආʢ͜ΕॏཁͩΑͶʣ ɾ"84Ҏ֎ͷϦιʔε΋Ұॹʹ؅ཧͰ͖Δ 5FSSBGPSNͬͯԿʁ (JUIVCɿIUUQTHPPHMLF.46E

  9. "84Ҏ֎ͷϦιʔε΋Ұॹʹ؅ཧͰ͖Δ 5FSSBGPSNͬͯԿʁ (JUIVCɿIUUQTHPPHMLF.46E

  10. ࣅͨΑ͏ͳࣗಈԽπʔϧͱͷҧ͍͸ʁ ɾ$MPVEGPSNBUJPO ˠ"84Ϧιʔε͔͠ରԠ͍ͯ͠ͳ͍ ɾ"OTJCMF ˠϛυϧ΢ΣΞͷϓϩϏδϣχϯάʹಛԽ 5FSSBGPSN͸ΠϯϑϥͷϏϧυ ϓϩϏδϣχϯάʹ΋ಛԽ͠ ͍ͯΔʂ 5FSSBGPSN͸ϨΠϠʔ͕ҧ͏ʂ (JUIVCɿIUUQTHPPHMLF.46E

  11. ࣅͨΑ͏ͳࣗಈԽπʔϧͱͷҧ͍͸ʁ 5FSSBGPSN͸ϨΠϠʔ͕ҧ͏ʂ (JUIVCɿIUUQTHPPHMLF.46E

  12. ࣅͨΑ͏ͳࣗಈԽπʔϧͱͷҧ͍͸ʁ ࣮ࡍʹ΍ͬͯΈͨͷͰ ޚཡ͍ͩ͘͞ (JUIVCɿIUUQTHPPHMLF.46E

  13. IUUQLOPXMFEHFTBLVSBBEKQLOPXMFEHF "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ (JUIVCɿIUUQTHPPHMLF.46E

  14. "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ Πϯετʔϧ ɾ-JOVYɹIUUQTXXXUFSSBGPSNJPEPXOMPBETIUNM ɾ.BDͳΒCSFXͰ΋ΠέΔ ࢀߟهࣄɹIUUQRJJUBDPN[FNCVUTVJUFNTFEGGCDG (JUIVCɿIUUQTHPPHMLF.46E

  15. "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ %PDLFSͰ΋ IUUQTXXXUFSSBGPSNJPEPDTQSPWJEFSTEPDLFSJOEFYIUNMɹ (JUIVCɿIUUQTHPPHMLF.46E

  16. "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ Ϗϧυ·ͰͷྲྀΕ ɾ*".Ϣʔβͷ࡞੒ɹ"ENJOJTUSBUPS"DDFTT ɾϏϧυ༻ϑΝΠϧ࡞੒ɹ UG ɾຐ๏ͷढจɹUFSSBGPSNJOJUʢ˞ॏཁʣ ɾ%SZ3VOΛࣄલʹɹUFSSBGPSNQMBO ɾద༻ɹUFSSBGPSNBQQMZ (JUIVCɿIUUQTHPPHMLF.46E

  17. "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ *".Ϣʔβͷ࡞੒ ɾUFSSBGPSNϢʔβΛ࡞੒͢Δ ɾ"ENJOJTUSBUPS"DDFTTΛ෇༩ (JUIVCɿIUUQTHPPHMLF.46E

  18. "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ Ϗϧυ༻ϑΝΠϧ࡞੒ IPNFVTFSUFSSBGPSNBXTNBJOUG ˞ϋʔυίʔσΟϯά͢Δ৔߹ (JUIVCɿIUUQTHPPHMLF.46E

  19. "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ UFSSBGPSNJOJU ɾUFSSBGPSN։࢝ͷढจɹ˞ޙड़͠·͢ ɾΧϨϯτσΟϨΫτϦʹʮUFSSBGPSNʯ͕࡞੒͞ΕΔ (JUIVCɿIUUQTHPPHMLF.46E

  20. "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ UFSSBGPSNQMBO ɾ͍ΘΏΔ%SZ3VO ɾԿ͕࡞੒͞ΕɺͲ͜ʹมߋ͕͋Δ͔ͳͲ΋Θ͔Δ ɾҙਤͨ͠ಈ࡞ʹͳΔ͔֬ೝʂ (JUIVCɿIUUQTHPPHMLF.46E

  21. "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ (JUIVCɿIUUQTHPPHMLF.46E

  22. "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ UFSSBGPSNBQQMZ ɾQMBOͷద༻ ɾίʔυԽͨ͠ϑΝΠϧ͕ಡΈࠐ·ΕΔ ࣗ෼Ͱ΍Δͱ͖͸"84ίϯιʔϧΛ֬ೝͯ͠ΈΑ͏ʂ (JUIVCɿIUUQTHPPHMLF.46E

  23. "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ (JUIVCɿIUUQTHPPHMLF.46E

  24. "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ 5FSSBGPSNEFTUSPZ ɾඞཁ͕ͳ͘ͳͬͨ؀ڥ͸๨Εͣ࡟আ ɾίʔυԽ͍ͯ͠ΔϦιʔε͕࡟আ͞ΕΔ (JUIVCɿIUUQTHPPHMLF.46E

  25. "84ΛࣗಈߏஙΛͯ͠ΈΑ͏ʂ ͱɺ͜͜·Ͱ͕Ұ࿈ͷྲྀΕͰ͢ʂ (JUIVCɿIUUQTHPPHMLF.46E

  26. UGϑΝΠϧͷಡΈํߨ࠲ ϑΝΠϧ͸෼ׂ ɾϋʔυίʔσΟϯά͸Πέͯͳ͍ ɾಡΈͮΒ͍ ɾϝϯςφϯεͮ͠Β͍ (JUIVCɿIUUQTHPPHMLF.46E

  27. UGϑΝΠϧͷಡΈํߨ࠲ BXT@WBSJBCMFTUG WBSJBCMFlม਺໊z\ EFGBVMUl஋z ^ ɾEFGBVMUΛهड़͓ͯ͘͠ͱର࿩ͳ͠Ͱ஋͕୅ೖ͞ΕΔ (JUIVCɿIUUQTHPPHMLF.46E

  28. UGϑΝΠϧͷಡΈํߨ࠲ BXT@FDUG ɾWBSYYYͰ஋ʹΞΫηεͰ͖Δ IUUQTXXXUFSSBGPSNJPJOUSPHFUUJOHTUBSUFEWBSJBCMFTIUNM (JUIVCɿIUUQTHPPHMLF.46E

  29. UFSSBGPSNUGTUBUFΛ஌Δ ࣍͸େࣄͳϑΝΠϧͷ͓࿩ (JUIVCɿIUUQTHPPHMLF.46E

  30. UFSSBGPSNUGTUBUFΛ஌Δ ɾϦιʔεͷঢ়ଶΛอ࣋͢Δ࠷ॏཁϑΝΠϧ ɾ࡞ۀऀ͸ৗʹ࠷৽ͷUGTUBUFϑΝΠϧΛಡΈࠐΜͰ͍Δඞ ཁ͕͋Δ ɾத਎͸+40/ ɾ҆શͳ৔ॴͰͷ؅ཧΛਪ঑ ɹʢෳ਺ਓͰUFSSBGPSN͢ΔͳΒ4͕͓͢͢Ίʣ ɾ(JU؅ཧ͸ίϯϑϦΫτ͕ى͖ͨΒࢮ͵ͷͰආ͚Δ (JUIVCɿIUUQTHPPHMLF.46E

  31. UFSSBGPSNUGTUBUFΛ஌Δ #BDLFOET ɾUGTUBUFΛϦϞʔτͰ؅ཧɻνʔϜؒͰͷ࡞ۀ͕҆શ ʹͳΔ ɾ4͔Β৘ใΛಡΈࠐΉͷͰσΟεΫʹ͸ॻ͖ࠐ·Ε ͳ͍ɻηΩϡϦςΟ໘ͰΑ͍ 4Ͱͷ؅ཧΛਪ঑ʂʂ (JUIVCɿIUUQTHPPHMLF.46E

  32. UFSSBGPSNUGTUBUFΛ஌Δ DPOpHUG ɾઌʹόέοτΛ࡞੒͓ͯ͜͠͏ (JUIVCɿIUUQTHPPHMLF.46E

  33. UFSSBGPSNJOJUΛ஌Δ ͦͯ͠Α͏΍͘ UFSSBGPSNJOJUʹ͍ͭͯ (JUIVCɿIUUQTHPPHMLF.46E

  34. UFSSBGPSNJOJUΛ஌Δ ɾ։࢝ͷढจͰ͸ͳ͘ɺUGTUBUFͱͷಉظίϚϯυ ɾUFSSBGPSNJOJUΛͤͣʹQMBOΛଧͭͱʰJOJUͯ͠Ͷʱ ͳJOGPϝοηʔδΛ਌੾ʹදࣔͯ͘͠ΕΔ ɾUFSSBGPSNJOJUͰෳ਺ਓͰͷ࡞ۀ΋҆৺ ˞ʮUFSSBGPSNίʔυΛQVMMͨ͠Βଧͭʯ৺ҙؾ ˞ʮQMBO BQQMZલʹ͸ଧͭʯ৺ҙؾ (JUIVCɿIUUQTHPPHMLF.46E

  35. UFSSBGPSNJOJUΛ஌Δ 5FSSBGPSNJOJUͷλΠϛϯά ɾʢॳճ࢖༻࣌ʣUGϑΝΠϧ࡞੒ޙ ɾCBDLFOEͷઃఆϑΝΠϧฤूޙ (JUIVCɿIUUQTHPPHMLF.46E

  36. ศརͳUFSSBGPSNJNQPSUΛ஌Δ ͑ʁखಈͰίʔυԽ͢Δͷେมʁ ͦΜͳ͋ͳͨʹUFSSBGPSNJNQPSUʂ (JUIVCɿIUUQTHPPHMLF.46E

  37. ศརͳUFSSBGPSNJNQPSUΛ஌Δ ɾطଘϦιʔεΛUFSSBGPSNUGTUBUFʹΠϯϙʔτͰ͖ Δ ɾݱࡏͷόʔδϣϯͰ͸Ұ౓ʹͻͱͭͷϦιʔε͔͠Πϯ ϙʔτͰ͖ͳ͍ʢվળ͞ΕΔ༧ఆʣ ɾઃఆϑΝΠϧΛ࡞੒͓ͯ͘͜͠ͱ͕ඞਢ (JUIVCɿIUUQTHPPHMLF.46E

  38. ศརͳUFSSBGPSNJNQPSUΛ஌Δ ɽUFSSBGPSNJNQPSUίϚϯυΛୟ͘ ɽطଘͷϦιʔε͕UFSSBGPSNUGTUBUF΁௥ه͞ΕΔɹɹɹ ɽ+40/Խ͞ΕͨίʔυΛݩʹʢ࢒೦ͳ͕ΒʣखಈͰ UFSSBGPSNίʔυԽ͢Δ ɽUFSSBGPSNQMBOΛ܁Γฦ͠ɺࠩ෼͕ͳ͘ͳΔΑ͏मਖ਼ (JUIVCɿIUUQTHPPHMLF.46E

  39. ศརͳUFSSBGPSNJNQPSUΛ஌Δ ͜ΕͰUFSSBGPSNUGTUBUFʹطଘϦιʔε͕+40/ίʔυ Խ͞Ε͍ͯΔ (JUIVCɿIUUQTHPPHMLF.46E

  40. ิ଍ ɾDSFEFOUJBMT͸ʮBXTDPOpHVSFʯͰઃఆ ɾ΋͘͠͸؀ڥม਺ʹઃఆ͢ΔͱϑΝΠϧʹ࢒͞ ͳͯ͘Α͘ͳΔ (JUIVCɿIUUQTHPPHMLF.46E

  41. ͦͷଞࢀߟจݙ ɾʰ5FSSBGPSNʱIUUQTXXXUFSSBGPSNJPEPDT QSPWJEFSTJOEFYIUNMɹ ɾʰਓ͸ϛεΛ͢Δ΋ͷɻखॱॻΑΓ΋࣮֬ʹΠϯϑϥߏங ΛࣗಈԽ͢Δʮ5FSSBGPSNʯʱIUUQTTFMFDLDD ɾʰΫϥ΢υ࣌୅ͷΠϯϑϥΤϯδχΞಈ޲ʱ IUUQRJJUBDPNSUBHBJUFNT GBBBEEFDɹ

  42. 5FSSBGPSNೖ໳ ׬