Almost from scratch, I would like to describe the necessary steps for creating a dev container, which includes the Azure and Terraform CLI.
Current state of running the workflow, which builds and pushes the Container Image
To create a new Codespace, I’ll click on the “Remote Explorer” icon in Visual Studio Code, then I’ll switch to “GitHub Codespace”. Next I have to click on the “+” button:
Now I’ll select the repository that I want to use for the Codespace:
As the last step, I’ll choose which instance I would like to use. I’ll choose the 2 cores option:
After that, the Codespace will be created:
After the successful creation, I can recognize that an active Codespace is available for my repository:
That is the view in Visual Studio Code:
I’m going to verify that the desired tools are installed. Therefore, I’ll enter “az” in the terminal:
In addition, I also prove that Terraform was provided properly by typing “terraform”:
So my Codespace named “obscure funicular” is ready, which includes my customized dev container, and I would be ready to start my development using Terraform on Azure.
Don’t forget to stop the Codespace, if you don’t need it: