Course outlines for learning terraform.
expected time | requirements |
---|---|
60 minutes | a computer |
Goal: Learn how to create Container Group resources on Azure using Terraform.
Azure can host containers for you, taking away the need to maintain your own infrastructure.
Use azurerm_container_group
to spin up a few containers.
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.
https://IP_ADDRESS/
)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.
memory
parameter to 0.1
for both containers and apply the code.Azure Portal |
443
, but the container just exposes 80
.