Skip to content

Files

Latest commit

Wellington OzorioWellington Ozorio
Wellington Ozorio
and
Wellington Ozorio
Oct 3, 2023
0de0e9f · Oct 3, 2023

History

History
56 lines (38 loc) · 4.08 KB
·

README.md

File metadata and controls

56 lines (38 loc) · 4.08 KB
·

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.