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

tfaction - Build Terraform Workflow with GitHub Actions

tfaction - Build Terraform Workflow with GitHub Actions

C11dd697828110237848e6773cdc4923?s=128

Shunsuke Suzuki

February 12, 2022
Tweet

More Decks by Shunsuke Suzuki

Other Decks in Programming

Transcript

  1. 4IVOTVLF4V[VLJ UGBDUJPO#VJME5FSSBGPSN 8PSLGMPXXJUI(JU)VC"DUJPOT 

  2. 8IBUTUGBDUJPO GitHub Actions collection for Opinionated Terraform Work fl ow

    https://github.com/suzuki-shunsuke/tfaction 
  3. (PBMPGUGBDUJPO Build good Terraform Work fl ow easily with GitHub

    Actions 
  4. (JU)VC'MPXCBTFE5FSSBGPSN8PSLGMPX  $SFBUF1VMM3FRVFTUMJOU UFSSBGPSNQMBO  .FSHF1VMM3FRVFTUUFSSBGPSNBQQMZ 

  5. 'FBUVSFT 

  6. Support Monorepo with GitHub Actions build matrix 

  7. Notify the result of terraform plan and apply with tfcmt

    
  8. Apply safely with Terraform Plan File 

  9. Update related pull requests automatically when the base branch is

    updated  6QEBUFEBVUPNBUJDBMMZ
  10. 'PMMPXVQ1VMM3FRVFTU 

  11. 

  12. 

  13. Update dependencies with Renovate safely 

  14. Scaffold working directory by GitHub Actions work fl ow_dispatch event

    
  15. 

  16. 

  17. 4VQQPSUXPSLGMPXGPSUGNJHSBUF 

  18. 

  19. 

  20. Validate Terraform Plan Result with Conftest  UGBDUJPOEPFTOUQSPWJEF$POGUFTU1PMJDZ1MFBTFBEEQPMJDZJOSFQPTJUPSZSPPUTQPMJDZEJSFDUPSZ

  21. $SFBUFBOEVQEBUFUFSSBGPSNMPDLIDM  6QEBUFEBVUPNBUJDBMMZ

  22. $SFBUFBOEVQEBUFUFSSBGPSNMPDLIDM 

  23. "VUPGPSNBUCZUFSSBGPSNGNU  6QEBUFEBVUPNBUJDBMMZ

  24. "VUPGPSNBUCZUFSSBGPSNGNU 

  25. UGTFD UGMJOU SFWJFXEPH