diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..8649632f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog + +## [1.0.0](https://github.com/T-Systems-MMS/terraform-azurerm-compute/tree/1.0.0) (2022-05-10) + +[Full Changelog](https://github.com/T-Systems-MMS/terraform-azurerm-compute/compare/b5b5566511fd11fe5d292cde3ffa0f537ffe48cd...1.0.0) + +**Merged pull requests:** + +- add renovate config [\#1](https://github.com/T-Systems-MMS/terraform-azurerm-compute/pull/1) ([michaelamattes](https://github.com/michaelamattes)) + + + +\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)* diff --git a/README.md b/README.md index e69de29b..3e85d028 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,98 @@ + +# compute + +This module manages Azure Compute Resources. + +<-- This file is autogenerated, please do not change. --> + +## Requirements + +| Name | Version | +|------|---------| +| terraform | ~>1.1 | +| azurerm | >=3.5 | + +## Providers + +| Name | Version | +|------|---------| +| azurerm | >=3.5 | + +## Resources + +| Name | Type | +|------|------| +| azurerm_linux_virtual_machine.linux_virtual_machine | resource | +| azurerm_managed_disk.managed_disk | resource | +| azurerm_virtual_machine_data_disk_attachment.virtual_machine_data_disk_attachment | resource | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| linux_virtual_machine | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | +| managed_disk | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | +| virtual_machine_data_disk_attachment | resource definition, default settings are defined within locals and merged with var settings | `any` | `{}` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| linux_virtual_machine | azurerm_linux_virtual_machine results | +| managed_disk | azurerm_managed_disk results | + +## Examples + +```hcl +module "compute" { + source = "registry.terraform.io/T-Systems-MMS/compute/azurerm" + linux_virtual_machine = { + service-env-vm = { + computer_name = "service-env-vm" + location = "westeurope" + resource_group_name = "service-env-rg" + admin_username = "linux_root" + size = "Standard_E4as_v4" + network_interface_ids = [module.network.network_interface[service-env-vm].id] + zone = 1 + source_image_reference = { + publisher = "OpenLogic" + offer = "CentOS" + sku = "7.6" + version = "latest" + } + admin_ssh_key = { + mgmt-vm = { + public_key = "ssh-rsa SSH-KEY" + username = "linux_root" + } + } + tags = { + service = "service_name" + } + } + } + managed_disk = { + disk0 = { + location = "westeurope" + resource_group_name = "service-env-rg" + storage_account_type = "Premium_LRS" + create_option = "Empty" + disk_size_gb = 50 + zone = 1 + tags = { + service = "service_name" + } + } + } + virtual_machine_data_disk_attachment = { + service-env-vm = { + managed_disk_id = module.compute.managed_disk[disk0].id + virtual_machine_id = module.compute.linux_virtual_machine[service-env-vm].id + lun = 0 + caching = "None" + } + } +} +``` + \ No newline at end of file