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

set-terraform-matrix という Actions を作った / set-ter...

YuyaKoda
August 19, 2022

set-terraform-matrix という Actions を作った / set-terraform-matrix-actions

YuyaKoda

August 19, 2022
Tweet

More Decks by YuyaKoda

Other Decks in Business

Transcript

  1. ͨͩ͠ɺ͜ͷύλʔϯͩͱ഑ྻʹશ؀ڥͷσΟϨΫτϦ໊͕ೖ͍ͬͯΔͷͰɺຖճ͢΂ͯͷσΟϨΫτϦʹ ରͯ͠terraform plan terraform apply͕࣮ߦ͞Εͯ͠·͏ͱ͍͏໰୊͕͋Γ·͢ɻ ͦͯ͠5FSSBGPSNͰෳ਺ͷ؀ڥΛѻ͍ͬͯΔͱɺಛఆͷ؀ڥ͚ͩʹద༻͍ͨ͠έʔεʹΑ͘ૺ۰͠·͢ɻ ී௨ʹ matrix job Λར༻ͨ͠৔߹ͷ໰୊఺

    w ઌʹ։ൃ؀ڥʹରͯ͠terraform applyͯ͠ಈ࡞֬ೝΛ͍ͨ͠έʔε w ಛఆͷ؀ڥͰͷΈ୅දͯ͠࡞੒͢ΔϦιʔε͕͋Δ৔߹ w ྫ͑͹QSPEͷεςʔτϑΝΠϧͰͷΈϦιʔεΛ࡞੒ͯ͠ɺ࡞੒ޙʹEBUBͰࢀর ͢ΔΑ͏ͳύλʔϯɻ͜ͷ৔߹͸ઌʹQSPE͚ͩઌʹBQQMZ͍ͨ͠ ͳΔ΂͘13ͰϨϏϡʔ͢Δϓϩηε͸อ͍ͪͨͷͰɺϩʔΧϧ࣮ߦ͸ආ͚͍ͨʜ
  2. ͨͩ͠ɺ͜ͷύλʔϯͩͱ഑ྻʹશ؀ڥͷσΟϨΫτϦ໊͕ೖ͍ͬͯΔͷͰɺຖճ͢΂ͯͷσΟϨΫτϦʹ ରͯ͠terraform plan terraform apply͕࣮ߦ͞Εͯ͠·͏ͱ͍͏໰୊͕͋Γ·͢ɻ ͦͯ͠5FSSBGPSNͰෳ਺ͷ؀ڥΛѻ͍ͬͯΔͱɺಛఆͷ؀ڥ͚ͩʹద༻͍ͨ͠έʔεʹΑ͘ૺ۰͠·͢ɻ ී௨ʹ matrix job Λར༻ͨ͠৔߹ͷ໰୊఺

    w ઌʹ։ൃ؀ڥʹରͯ͠terraform applyͯ͠ಈ࡞֬ೝΛ͍ͨ͠έʔε w ಛఆͷ؀ڥͰͷΈ୅දͯ͠࡞੒͢ΔϦιʔε͕͋Δ৔߹ w ྫ͑͹QSPEͷεςʔτϑΝΠϧͰͷΈϦιʔεΛ࡞੒ͯ͠ɺ࡞੒ޙʹEBUBͰࢀর͢ ΔΑ͏ͳύλʔϯɻ͜ͷ৔߹͸ઌʹQSPE͚ͩઌʹBQQMZ͍ͨ͠ ͳΔ΂͘13ϕʔεͰϨϏϡʔ͢Δϓϩηε͸อͬͨ··ɺϩʔΧϧ࣮ߦͱ͔͸ආ͚͍ͨʜ