Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/patkoch/azure_terraform_codespace


https://github.com/patkoch/azure_terraform_codespace

azure configuration-as-code devcontainer github github-codespaces infrastructure-as-code terraform

Last synced: 4 days ago
JSON representation

Awesome Lists containing this project

README

        

# 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](https://github.com/patkoch/azure_terraform_codespace/actions/workflows/build.yml/badge.svg)](https://github.com/patkoch/azure_terraform_codespace/actions/workflows/build.yml)

## 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: