Skip to content

wozorio/terraform-azure-linux-vm

Repository files navigation

Terraform Azure

GitHub CI Deploy

Terraform code for deploying a Linux VM with Ubuntu 22.04 LTS (Jammy Jellyfish) in Azure with GitHub Actions.

Shutdown and Start

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.

Requirements

Name Version
terraform >= 0.15
azurerm 3.67.0

Providers

Name Version
azurerm 3.67.0

Modules

Name Source Version
nsg_vm_ubuntu ./modules/network_security_group/ n/a
vm_ubuntu ./modules/linux_virtual_machine/ n/a

Resources

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

Inputs

Name Description Type Default Required
location The Azure Region where the resources should exist string n/a yes

Outputs

No outputs.

About

Provision a Ubuntu virtual machine in Azure with Terraform.

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •