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: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/patkoch/azure_terraform_codespace
- Owner: patkoch
- Created: 2024-02-04T16:35:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-19T19:14:11.000Z (3 months ago)
- Last Synced: 2025-01-19T19:44:35.129Z (3 months ago)
- Topics: azure, configuration-as-code, devcontainer, github, github-codespaces, infrastructure-as-code, terraform
- Language: Dockerfile
- Homepage: https://www.patrickkoch.dev/posts/post_34/
- Size: 3.52 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
[](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:
![]()