Terraform code for deploying a Linux VM with Ubuntu 22.04 LTS (Jammy Jellyfish) in Azure with GitHub Actions.
To save costs, the virtual machine is shutdown and started every day automatically with respective workflows in GitHub Actions. The shutdown is triggered at 11:00 PM UTC and the startup at 4:00 AM UTC.
Name | Version |
---|---|
terraform | >= 0.15 |
azurerm | 3.67.0 |
Name | Version |
---|---|
azurerm | 3.67.0 |
Name | Source | Version |
---|---|---|
nsg_vm_ubuntu | ./modules/network_security_group/ | n/a |
vm_ubuntu | ./modules/linux_virtual_machine/ | n/a |
Name | Type |
---|---|
azurerm_network_interface.vm_ubuntu | resource |
azurerm_network_interface_security_group_association.vm_ubuntu | resource |
azurerm_public_ip.vm_ubuntu | resource |
azurerm_resource_group.playground | resource |
azurerm_subnet.this | resource |
azurerm_virtual_network.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
location | The Azure Region where the resources should exist | string |
n/a | yes |
No outputs.