Starting my cloud journey, one of the biggest challenges I faced was finding a place to practice Linux commands. GitHub Codespaces has completely solved this problem.

As a seasoned professional, imagine being able to take your entire local development environment with you, minus the hassle of carrying your computer. GitHub Codespaces offers exactly that. Codespace is a cloud-based service that allows you to create and run your projects directly from your browser. No need to set up your projects on your local machine — everything you need is hosted online and accessible from any device through the web.

localdevicememe.jpg

Executive Summary

This article aims to introduce and simplify GitHub Codespaces: a cloud development environment for developers. It covers the prerequisites, steps to launch and set up a Codespace, including installing essential tools like Terraform, AWS CLI, and Ansible. The guide also details how to push code changes to GitHub and manage Codespaces efficiently.

What is GitHub Codespaces?

GitHub codespace is a remote compute with a text editor (Visual Studio Code) attached to it that runs on the cloud, where you can set up a development environment. This means that you can install all your project dependencies and run from the browser. It automatically sets up all the necessary components for your project, including the source code, runtime, compiler, debugger, editor, custom configuration files, relevant editor extensions, and additional features.

With codespace, individuals can get up to 60 hours of free compute per month. The best part is, it has vim and nano preinstalled. 🤠

In this guide, I’ll walk you through the process of installing Terraform and AWS CLI within a codespace, enabling you to manage your infrastructure as code directly from the cloud on the go.

Pre-requisite:

To follow along, you simply need to have a Github account. You can click here to sign-up.

Steps to launch GitHub Codespaces

i.) Create a GitHub Repository

  1. Log into Github.com
  2. Click on “New”, at the top left page of the screen to add a new repository.

new-repository.png

  1. Give you the new a ay name, and select the button to Add a README file. Then click on “Create”