In this fun workshop, you will learn how to use GitHub Copilot to help you work with Terraform files.
Estimated time to complete: Approximately 120 minutes
Participants will be guided to install the GitHub Copilot VS Code extension, follow a CodeTour to learn how to interact with GitHub Copilot, and then use GitHub Copilot to update, document and create Terraform files.
The workshop is divided into the following sections:
| Step | Description |
|---|---|
| Setup | Instructions for installing the GitHub Copilot VS Code extension and joining the GitHub Copilot trial. |
| Core Exercises | Instructions for getting started with GitHub Copilot. |
| Terraform Challenge | Terraform challenge exercises for participants to complete. |
| Github Actions Challenge | GitHub Actions challenge exercises for participants to complete. |
| Additional Resources | Additional resources for participants to explore after the workshop. |
In this project you will find:
- a
variables.tffile we'll use to influence Copilot's suggestions - a
main.tffile that contains a Terraform module that creates a resource group in Azure - a devcontainer that installs CodeTour and GitHub Copilot when the Codespace is created (If you want to use Codespaces)
- a
.instructionsfolder all the instructions for this workshop. - an
assetsfolder containing images used in this workshop documentation. - a
sample_dotnet_appfolder that contains a sample .NET application that can be used in the workshop. - a
.toursfolder that includes the CodeTour file if you wish to use it.
- How do I get a GitHub Copilot license?
- You can request a trial license from your GitHub Sales representative or via Copilot for Individuals or Business licenses.
- How do I get a GitHub Codespaces license?
- Codespaces is included with GitHub Enterprise Cloud, GitHub Enterprise Server, and GitHub Free. You can check under your billing settings page.
- I am having trouble activating GitHub Copilot after I load the plugin, what should I do?
- This could be because you launched your Codespace before you activated GitHub Copilot or accepted the invitation to the trial org. Please try to reload your Codespace and try again.