
Azure DevOps: Provision API Infrastructure using Terraform - Full Course
In this full course, we’ll automatically provision an API on Azure including the infrastructure required to run it, (by defining the infrastructure as code)! You’ll be shown how to do this completely step by step using: .NET Core 3.1, Docker, Docker Hub, Azure DevOps, Terraform and Azure.
When done, you’ll understand the power of Infrastructure as Code!
Level: Beginner / Intermediate
Code on GitHub: https://github.com/binarythistle/S03E...
My Book: https://www.apress.com/gp/book/978148...
Patreon Site (Exclusive Member Benefits!): / binarythistle
INTRODUCTION
1:57 Course Overview
5:23 What we'll build
8:22 Benefits of Infrastructure as Code
9:35 Tooling
API, DOCKER & GIT
10:55 Set up / Scaffold API
12:50 Remove Https Redirection
14:00 Dockerfile: Package with Docker
15:20 Build Docker Image
16:43 Run Docker Image
18:09 Push Docker Image to Docker Hub
19:10 Add .gitignore file to project
19:43 Initialise Local Git Repository
20:25 Create Github Repo and push local repo
TERRAFORM
22:01 Benefits Terraform
26:28 Write our first Infrastructure as Code (main.tf file)
32:29 Overview of Terraform commands (init, plan, apply & destroy)
33:31 Initialise Terraform Provider (terraform init)
34:00 View the Terraform Plan (terraform plan)
34:36 Security considerations Pt 1
36:30 Provision Resources (terraform apply)
39:00 Add a Container Resource to our main.tf file
41:55 Re-run terraform plan
42:30 Re-run terraform apply
43:25 Test terraform provsioned API
44:00 Security Considerations Pt 2 Service Principal
48:05 Create Service Principal on Azure
54:00 Add Service Principle Environment Variables for User
56:45 Test Service Principle Set up at Command Line
AZURE DEVOPS (Pt1)
58:36 Create Azure DevOps Project
59:35 Create Service Connections
1:02:45 Create our Azure DevOps Pipeline
1:08:00 Manually Trigger Pipeline (Deploy Docker Image)
1:10:10 Check Out Docker Image was deployed
1:11:42 Trigger Pipeline from Desktop
AZURE DEVOPS (Pt2)
1:15:21 Configure Pipeline to use Service Principal
1:18:33 Terraform State (terraform.tfstate)
1:21:29 Create Azure storage Account to persist terraform.tfstate
1:27:13 Update main.tf to use Azure Storage backend
1:29:06 Add Terraform to azure-pipelines.yml
1:37:25 Use terraform Destroy to remoeve all resources on Azure
1:39:18 Remove Docker Image from Docker Hub
1:40:20 CHECKPOINT: Clean slate before we run our Pipeline
1:40:43 Push all our code to GitHub to trigger build & provison stages
1:43:10 Provisioning Failure Investigation
1:45:10 Image Versioning Discussion
1:49:21 Idempotency and the need for versioning
1:51:50 Inject build verion in to main.tf
1:55:55 Re-run out pipeline
2:00:25 Test Our API
FINAL THOUGHTS & ACKNOWLEDGEMENTS
-2:01:22 Homework
-2:02:35 Patreon Supporter Credits
コメント