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

AKIBA.AWS#14 Terraform v0.12

F9ace682a6b4ff7b2eef422f21ace8a4?s=47 kazue
July 17, 2019

AKIBA.AWS#14 Terraform v0.12

AKIBA.AWS #14 番外編〜AWS Update LT大会〜でTerraform v0.12について話しました。
https://dev.classmethod.jp/news/akiba-aws-20190717/

F9ace682a6b4ff7b2eef422f21ace8a4?s=128

kazue

July 17, 2019
Tweet

More Decks by kazue

Other Decks in Technology

Transcript

  1. 5FSSBGPSNW  ͔ͣ͑ ",*#""84൪֎ฤ

  2. ࣗݾ঺հ ͔ͣ͑ AWSࣄۀຊ෦ ίϯαϧςΟϯά෦ॴଐ େࡕΦϑΟεۈ຿ ೖࣾ7ϲ݄໨ લ৬·Ͱ͸ͲͪΒ͔ͱ͍͏ͱ ΞϓϦέʔγϣϯΤϯδχΞ

  3. ຊ೔͓࿩͢͠Δ಺༰ w5FSSBGPSNͱ͸ w5FSSBGPSNWͷ৽ػೳͷ͝঺հʢൈਮʣ w5FSSBGPSN࢝ΊͯΈΑ͏ͱࢥ͏ํ΁

  4. Terraformͱ͸

  5. 5FSSBGPSNͱ͸ w)BTIJ$PSQ͕ࣾఏڙ͢ΔΠϯϑϥߏ੒؅ཧπʔϧ w)$-ʢ)BTIJ$PSQ$POpHVSBUJPO-BOHVBHFʣͱ͍͏ ݴޠͰUG֦ுࢠͷϑΝΠϧʹΠϯϑϥߏ੒Λهड़ͯ͠ ͍͖ɺ࣮ߦ͢Δͱͦͷߏ੒௨ΓͷΠϯϑϥ͕ग़དྷ্͕Δ w͍ΘΏΔ*OGSBTUSVDUVSFBT$PEFͷπʔϧ w (JUͳͲͷόʔδϣϯ؅ཧγεςϜͰมߋཤྺΛ؅ཧͰ͖Δ w ίʔυϨϏϡʔͰ͖Δ

    w ԣల։ʢ࠶ར༻ʣ͕༰қʹͳΔ w ίϯιʔϧͰ࡞ۀ͢Δ͜ͱʹΑΔਓҝతϛεΛ๷͙͜ͱ͕Ͱ͖Δ
  6. Terraform v0.12

  7. 5FSSBGPSNW֓ཁ wBMQIB͕ɺਖ਼ࣜ൛  Ϧ Ϧʔε͕ w࠷৽͸ઌि  ϦϦʔεͷ wϦϦʔε͔Β໿೥ؒ΄΅มߋͷແ͔ͬͨ)$- ͷେ෯ߋ৽ʢޙํޓ׵ੑͳ͠

     w%JSUZ)BDLͰରԠ͍ͯͨ͠෦෼͕؆ܿʹهड़ Ͱ͖ΔΑ͏ʹͳΓ·ͨ͠ʂ
  8. ຊ೔͝঺հ͢Δมߋ఺ wࠩ෼͕ݟ΍͘͢ͳͬͨ wม਺ͷࢀর͕؆୯ʹॻ͚ΔΑ͏ʹͳͬͨ wΑΓಈతʹॻ͚ΔΑ͏ʹͳͬͨ wNPEVMFͷೖग़ྗͷܕ͕ॊೈʹͳͬͨ

  9. ࠩ෼͕ݟ΍͘͢ͳͬͨ v0.11 v0.12

  10. ม਺ͷࢀর͕؆୯ʹॻ͚ΔΑ͏ʹͳͬͨ v0.11 v0.12 ม਺Λ “${ม਺໊}”ͱॻ͘ඞཁ͕ͳ͘ͳΓ·ͨ͠

  11. ΑΓಈతʹॻ͚ΔΑ͏ʹͳͬͨ For΍For-Each͕ॻ͚ΔΑ͏ʹͳͬͨ

  12. ΑΓಈతʹॻ͚ΔΑ͏ʹͳͬͨ For΍For-Each͕ॻ͚ΔΑ͏ʹͳͬͨ

  13. NPEVMFͷೖग़ྗͷܕ͕ॊೈʹͳͬͨ v0.11 moduleͷೖग़ྗʹ࢖ ͑Δܕ͸୯७ͳ΋ͷͷ Έ - จࣈྻ - ਺஋ -

    ͦΕΒΛཁૉʹ΋ͭ list΍map →ೖग़ྗཁૉଟ͘ͳΔ
  14. NPEVMFͷೖग़ྗͷܕ͕ॊೈʹͳͬͨ v0.12 ΋ͬͱෳࡶͳߏ଄ͷม ਺Λѻ͑ΔΑ͏ʹͳͬ ͨ (networkͷதͷͲͷཁૉΛ consul_clusterͰར༻͢Δͷ ͔఻ΘΒͳ͍ͱ͍͏σϝϦο τ͋Γ)

  15. Terraform࢝ΊͯΈΑ͏ͱࢥ͏ํ΁

  16. 5FSSBGPSN࢝ΊͯΈΑ͏ͱࢥ͏ํ΁ ʮ1SBHNBUJD5FSSBGPSNPO"84ʯ͕ Φεεϝ wجຊతͳͱ͜Ζ͔ Βɺ࣮ફతͳϊ΢ϋ ΢·Ͱ·ͱ·͍ͬͯ Δ wͦΕͰ͍ͯαΫαΫ ಡΊΔ ࣗ෼͸࣌ؒ

    ͘Β͍ͰಡΊͨ
  17. 5FSSBGPSN࢝ΊͯΈΑ͏ͱࢥ͏ํ΁ https://dev.classmethod.jp/cloud/aws/bookreview-terraformon-aws-md/ ϒϩά͋Γ·͢

  18. ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠