Skip to content

A module used to simplify the generation of image Azure marketplace image which contain the a dedicated Plan, such as CIS images. It works by passing a simple variable to this module will output the config items. Design to work with the CyberScot Windows VM module 🚀

License

Notifications You must be signed in to change notification settings

cyber-scot/terraform-azurerm-windows-virtual-machine-os-sku-with-plan-calculator

 
 

Repository files navigation

terraform-azurerm-os-calculator

Heavily inspired form Terraform Azure Compute Module

Designed to be used with Libre DevOps VM modules, and will simplify the way of getting SKUs for your VM images without having to look it up.

Simple pass the OS you want to the variable, and it will output the values of the publisher, offer and SKU. All versions are latest

module "os_calculator" {
  source = "github.com/libre-devops/terraform-azurerm-windows-os-sku-with-plan-calculator"

  vm_os_simple = "CISWindowsServer2019L2" // will give you CIS WindowsServer2019 L2 sku properties, to be used in windows-vm module
}

For a full example build, check out the Libre DevOps Website

Requirements

No requirements.

Providers

No providers.

Modules

No modules.

Resources

No resources.

Inputs

Name Description Type Default Required
standard_os n/a map
{
"CISWindowsServer2012L2": "center-for-internet-security-inc,cis-windows-server-2012-r2-v2-2-1-l2,cis-ws2012-r2-l2",
"CISWindowsServer2016L1": "center-for-internet-security-inc,cis-windows-server-2016-v1-0-0-l1,cis-ws2016-l1",
"CISWindowsServer2016L2": "center-for-internet-security-inc,cis-windows-server-2016-v1-0-0-l2,cis-ws2016-l2",
"CISWindowsServer2019L1": "center-for-internet-security-inc,cis-windows-server-2019-v1-0-0-l1,cis-ws2019-l1",
"CISWindowsServer2019L2": "center-for-internet-security-inc,cis-windows-server-2019-v1-0-0-l2,cis-ws2019-l2"
}
no
vm_os_simple If using this module, pass one of the keys as the variable to get that image properties string "" no

Outputs

Name Description
calculated_value_os_offer Gets the offer value
calculated_value_os_publisher Gets the offer value
calculated_value_os_sku Gets the OS value

Requirements

No requirements.

Providers

No providers.

Modules

No modules.

Resources

No resources.

Inputs

Name Description Type Default Required
standard_os n/a map
{
"CISWindowsServer2012L2": "center-for-internet-security-inc,cis-windows-server-2012-r2-v2-2-1-l2,cis-ws2012-r2-l2",
"CISWindowsServer2016L1": "center-for-internet-security-inc,cis-windows-server-2016-v1-0-0-l1,cis-ws2016-l1",
"CISWindowsServer2016L2": "center-for-internet-security-inc,cis-windows-server-2016-v1-0-0-l2,cis-ws2016-l2",
"CISWindowsServer2019L1": "center-for-internet-security-inc,cis-windows-server-2019-v1-0-0-l1,cis-ws2019-l1",
"CISWindowsServer2019L2": "center-for-internet-security-inc,cis-windows-server-2019-v1-0-0-l2,cis-ws2019-l2"
}
no
vm_os_simple If using this module, pass one of the keys as the variable to get that image properties string "" no

Outputs

Name Description
calculated_value_os_offer Gets the offer value
calculated_value_os_publisher Gets the offer value
calculated_value_os_sku Gets the OS value

About

A module used to simplify the generation of image Azure marketplace image which contain the a dedicated Plan, such as CIS images. It works by passing a simple variable to this module will output the config items. Design to work with the CyberScot Windows VM module 🚀

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 61.5%
  • HCL 31.1%
  • PowerShell 7.4%