learn-terraform

Course outlines for learning terraform.

View the Project on GitHub robertdebock/learn-terraform

Build infrastructure container group

expected time requirements
60 minutes a computer

Goal: Learn how to create Container Group resources on Azure using Terraform.

Explanation

Azure can host containers for you, taking away the need to maintain your own infrastructure.

Howto

Use azurerm_container_group to spin up a few containers.

Demo

See this example repository.

Assignment

Once applied, the container group gets an IP address. (See the Azure portal)

The terraform code in the documentation show what port you may visit.

This does not work. Inspect the Azure Portal to understand what’s wrong. (Hint below, but give yourself time to figure it out.)

You should now have a working website. Let’s reduce the allocated memory and CPU, and likely save a bit of money.

View the results

Azure Portal

Questions

  1. Do you see a use-case for your situation to use container groups?
  2. Does each container have a unique IP-address?
  3. What does your container group cost per month?

Hints