Automate Cloudflare with Terraform and GitHub Actions! - Terraform Tutorial for Beginners
Techno Tim
@technotimAbout
I make videos that help people do awesome things with technology.
Latest Posts
Video Description
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/terraform-cloudflare-github/ Support me on Patreon: https://www.patreon.com/technotim Sponsor me on GitHub: https://github.com/sponsors/timothystewart6 Subscribe on Twitch: https://www.twitch.tv/technotim Become a YouTube member: https://www.youtube.com/channel/UCOk-gHyjcWZNj3Br4oxwh0A/join 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: https://www.youtube.com/@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!
You May Also Like
Fly Like a Pro: Essential Aerodynamics Gear
AI-recommended products based on this video

LEGO Technic Kawasaki Ninja H2R Motorcycle Toy - Building Toys for Kids, Boys & Girls, Ages 10+ - Kickstand for Display - Model Kit Birthday Gift - 42170

LEGO Icons Williams Racing FW14B & Nigel Mansell F1 Model Car Kit - Building Set for Adults, Ages 18+ - F1 DIY Craft for Display - Gift Idea for Fans of F1-10353

LEGO Star Wars TIE Bomber Model Building Kit, Star Wars Toy Starfighter with Gonk Droid Figure, Darth Vader Minifigure and Lightsaber, Collectible Star Wars Gift for 9 Year Olds, 75347

LEGO City F1 Driver with McLaren Race Car Toy - Model Car Building Toy Kit for Kids, Boys and Girls, Ages 6+ - F1 Collectible for Fans - with a Driver Minifigure - Gift Idea for Birthdays - 60442

Portable Air Conditioners, 5200mAh Rechargeable Mini Air Conditioner Fan, 3 Wind Speeds Quiet Personal Small Desk Air Cooler Fan for for Bedroom, Car, Home, Camping, Travel, and Office




















