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

コード化でトイル撲滅へ / coding-to-eliminate-toil

guccii07
December 01, 2021

コード化でトイル撲滅へ / coding-to-eliminate-toil

2021/10/01 LT資料

guccii07

December 01, 2021
Tweet

Other Decks in Technology

Transcript

  1. ߏ੒&࣮ߦ # tfϑΝΠϧͷ಺༰ΛϦϞʔτʹ൓ө
 $ Terraform apply . "## environments $##

    sample "## backend.tf # stateϑΝΠϧͷڞ༗ઃఆ "## cloudfront.tf "## config.tf # provider΍ΫϨσϯγϟϧͷઃఆ৘ใ "## iam.tf "## route53.tf "## s3.tf "## terraform.tfvars # ม਺ͷ஋ $## variables.tf # ม਺ͷએݴ
  2. ϑϩϯτଆͷΠϯϑϥߏங खॱॻ࡞੒ 4όέοτ࡞੒ $MPVE'SPOUߏங 3PVUFʹΑΓϧʔςΟϯά UGϑΝΠϧ࡞੒ ࠓճ • ޻਺࡟ݮʢ4h὎1hʣ •

    ΦϖϛεΛ๷͙ • ଐਓԽΛ๷͙ • मਖ਼΍ผ؀ڥߏங΋༰қ ݱঢ় ࠓճ ϑϩʔ 5FSSBGPSN࣮ߦ
  3. ߏ੒&࣮ߦʢҰ෦ൈਮʣ on: workflow_dispatch: # Ϙλϯ࣮ߦ jobs: deploy: runs-on: ubuntu-latest
 steps:

    # ࣮ߦ͢ΔॲཧΛهड़ - name: Checkout # νΣοΫΞ΢τ uses: actions/checkout@v2 # ΞΫγϣϯʢॲཧͷ͔ͨ·Γʣ࣮ߦ - name: S3 Sync for root # S3Ξοϓϩʔυ uses: jakejarvis/s3-sync-action@be0c4ab89158cac4278689ebedd8407dd5f35a83 env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - name: Invalidate CloudFront # CloudFrontΩϟογϡΫϦΞ ɹɹɹɹuses: chetan/invalidate-cloudfront- action@00d50031f6b55bac485c63d8789c6c346645d1a5
  4. ίϯςϯπߋ৽ ιʔείʔυͷ࠷৽ΛQVMM "84ίϯιʔϧϩάΠϯ 4̏Ξοϓϩʔυ $MPVE'SPOU ΩϟογϡΫϦΞ (JU)VC"DUJPOT࣮ߦ ࠓճ • ޻਺࡟ݮʢ10min὎1minʣ

    • ΦϖϛεΛ๷͙ • ଐਓԽΛ๷͙ • ಉ༷ͳϑϩʔͷ৔߹ɺྲྀ༻ ͠΍͍͢ ݱঢ় ࠓճ ϑϩʔ :BNMϑΝΠϧ࡞੒ ʢॳճͷΈʣ