From the course: DevSecOps in Action: Securing and Governing Multicloud Infrastructures
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Setting up Terraform
From the course: DevSecOps in Action: Securing and Governing Multicloud Infrastructures
Setting up Terraform
- [Instructor] You can now clone the course repository locally and open it in your preferred code editor. I'm going to be working with VS Code. We're going to create the remote Terraform backends in AWS and Azure and initialize Terraform in both of them. Starting with Azure, we'll navigate to infra, azure and open up the README file. Then we'll also open up a terminal. I prefer to use WSL. We're going to assume that you're already logged into Azure and begin to run the commands. First, we're going to create some variables. The storage account name has to be globally unique, so you can add some random digits at the end of the tfstate. I'll be working with 15619. Then we need to create the resource group that will store your remote Terraform state file in Azure. After that, we'll create a storage account for the Terraform state file. Within the storage account, we're going to create a blob container and within the blob…