Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 2.77 KB

README.md

File metadata and controls

69 lines (44 loc) · 2.77 KB

Create a dev container in your GitHub Codespace including the Azure CLI and Terraform

Almost from scratch, I would like to describe the necessary steps for creating a dev container, which includes the Azure and Terraform CLI.

GitHub Action Workflow

Current state of running the workflow, which builds and pushes the Container Image

Build Dockerfile and Push to Docker Hub

Create a Codespace using the provided configuration files

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.

Stop your Codespace

Don’t forget to stop the Codespace, if you don’t need it: