Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Terraform

You're reading from   Mastering Terraform A practical guide to building and deploying infrastructure on AWS, Azure, and GCP

Arrow left icon
Product type Paperback
Published in Jul 2024
Publisher Packt
ISBN-13 9781835086018
Length 494 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Mark Tinderholt Mark Tinderholt
Author Profile Icon Mark Tinderholt
Mark Tinderholt
Arrow right icon
View More author details
Toc

Table of Contents (27) Chapters Close

Preface 1. Part 1: Foundations of Terraform FREE CHAPTER
2. Chapter 1: Understanding Terraform Architecture 3. Chapter 2: Using HashiCorp Configuration Language 4. Chapter 3: Harnessing HashiCorp Utility Providers 5. Part 2: Concepts of Cloud Architecture and Automation
6. Chapter 4: Foundations of Cloud Architecture – Virtual Machines and Infrastructure-as-a-Services 7. Chapter 5: Beyond VMs – Core Concepts of Containers and Kubernetes 8. Chapter 6: Connecting It All Together – GitFlow, GitOps, and CI/CD 9. Part 3: Building Solutions on AWS
10. Chapter 7: Getting Started on AWS – Building Solutions with AWS EC2 11. Chapter 8: Containerize with AWS – Building Solutions with AWS EKS 12. Chapter 9: Go Serverless with AWS – Building Solutions with AWS Lambda 13. Part 4: Building Solutions on Azure
14. Chapter 10: Getting Started on Azure – Building Solutions with Azure Virtual Machines 15. Chapter 11: Containerize on Azure – Building Solutions with Azure Kubernetes Service 16. Chapter 12: Go Serverless on Azure – Building Solutions with Azure Functions 17. Part 5: Building Solutions on Google Cloud
18. Chapter 13: Getting Started on Google Cloud – Building Solutions with GCE 19. Chapter 14: Containerize on Google Cloud – Building Solutions with GKE 20. Chapter 15: Go Serverless on Google Cloud – Building Solutions with Google Cloud Functions 21. Part 6: Day 2 Operations and Beyond
22. Chapter 16: Already Provisioned? Strategies for Importing Existing Environments 23. Chapter 17: Managing Production Environments with Terraform 24. Chapter 18: Looking Ahead – Certification, Emerging Trends, and Next Steps 25. Index 26. Other Books You May Enjoy

Automating the deployment

In this section, we’ll learn how to automate the deployment process for container-based architectures. We’ll be employing similar techniques that we saw in Chapter 8 when we took this same journey down the Amazon. As a result, we’ll focus on what changes we need to make when we want to deploy to Microsoft Azure and AKS.

Docker

In Chapter 8, we covered each step of the GitHub Actions workflow that executes Docker to build, tag, and push our Docker container images. Thanks to the nature of Docker’s cloud-agnostic architecture, this overwhelmingly stays the same. The only thing that changes is the way we must configure Docker so that it targets our Azure container registry.

Like in Chapter 8, we need to connect to the container registry that we provisioned with Terraform. On Azure, that means we’ll need the Entra ID service principal’s client ID and client secret:

- name: Login to Azure Container Registry...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime