Automate Cloudflare with Terraform and GitHub Actions! - Terraform Tutorial for Beginners

Published: 25 March 2023
on channel: Techno Tim
46,538
1.3k

Terraform is a powerful infrastructure as code tool to help you create and manage infrastructure across multiple public or private clouds. It can help you provision, configure, and manage infrastructure using their simple and human readable configuration language. Using Terraform helps you automate your infrastructure and your DevOps workflow, do it consistently, and allows you to collaborate with teams in Git. Today, we're going to set up and configure Terraform on your machine so we can start using Terraform. Then we'll configure cf-terraforming to import our Cloudflare state and configuration into Terraform. After that we'll set up a GitHub report and configure GitHub actions so you have CI and CD for deploying your Infrastructure automatically using a Git Flow. If you're new to Terraform, that's fine! This is a beginner tutorial for Terraform and by the end of this, you will feel like an expert!

Video Notes: https://technotim.live/posts/terrafor...

Support me on Patreon:   / technotim  
Sponsor me on GitHub: https://github.com/sponsors/timothyst...
Subscribe on Twitch:   / technotim  
Become a YouTube member:    / @technotim  
Merch Shop: https://l.technotim.live/shop
Gear Recommendations: https://l.technotim.live/gear
Get Help in Our Discord Community: https://l.technotim.live/discord
2nd channel:    / @technotimtalks  

(Affiliate links may be included in this description. I may receive a small commission at no cost to you.)

#terraform #cloudflare #github

00:00 - What is Terraform and what are the benefits of Terraform?
01:15 - How to Automate Cloudflare with Terraform
03:19 - How to Install Terraform
03:59 - How to Initialize a new Terraform projects
04:38 - Terraform Providers
05:54 - Cloudflare Provider for Terraform
08:35 - Getting an API Token from Cloudflare
10:55 - Terraform Plan & Terraform Apply
12:18 - Importing Cloudflare State to Terraform
14:54 - Import State using cf-terraforming
17:16 - Configuring Terraform Cloud for your Terraform State
20:43 - CI / CD with Terraform
21:32 - Create a new GitHub Repo
21:59 - Import Project into GitHub with Git
24:34 - Adding GitHub Action for Terraform
27:22 - Adding Terraform Secret to GitHub Action
28:55 - Pull Request Workflow with CI / CD and Terraform
33:16 - What do I think about Terraform?
34:23 - Stream Highlight - "I'm done clicking buttons!"

Thank you for watching!


Watch video Automate Cloudflare with Terraform and GitHub Actions! - Terraform Tutorial for Beginners online without registration, duration hours minute second in high quality. This video was added by user Techno Tim 25 March 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 46,53 once and liked it 1.3 thousand people.