generated from azurenoops/terraform-module-overlays-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresources.compute.images.tf
64 lines (50 loc) · 2.43 KB
/
resources.compute.images.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#---------------------------------------------------------------
# Azure Compute Image - Default is "false"
#---------------------------------------------------------------
resource "azurerm_shared_image" "compute_image" {
for_each = { for x in var.compute_images_definitions : x.name => x }
name = each.value.name
gallery_name = azurerm_shared_image_gallery.compute_image_gallery.name
resource_group_name = local.resource_group_name
location = local.location
identifier {
offer = each.value.identifier.offer
publisher = each.value.identifier.publisher
sku = each.value.identifier.sku
}
os_type = each.value.os_type
description = each.value.description
disk_types_not_allowed = each.value.disk_types_not_allowed
end_of_life_date = each.value.end_of_life_date
eula = each.value.eula
specialized = each.value.specialized
architecture = each.value.architecture
hyper_v_generation = each.value.hyper_v_generation
max_recommended_vcpu_count = each.value.max_recommended_vcpu_count
min_recommended_vcpu_count = each.value.min_recommended_vcpu_count
max_recommended_memory_in_gb = each.value.max_recommended_memory_in_gb
min_recommended_memory_in_gb = each.value.min_recommended_memory_in_gb
privacy_statement_uri = each.value.privacy_statement_uri
release_note_uri = each.value.release_note_uri
trusted_launch_enabled = each.value.trusted_launch_enabled
confidential_vm_supported = each.value.confidential_vm_supported
confidential_vm_enabled = each.value.confidential_vm_enabled
accelerated_network_support_enabled = each.value.accelerated_network_support_enabled
tags = each.value.tags
}
/* resource "azurerm_shared_image_version" "example" {
for_each = { for x in var.compute_images_definitions : x.name => x }
name = each.value.name
gallery_name = azurerm_shared_image_gallery.compute_image_gallery.name
image_name = azurerm_shared_image.compute_image.name
resource_group_name = local.resource_group_name
location = local.location
managed_image_id = azurerm_shared_image.compute_image.id
target_region {
name = local.location
regional_replica_count = 5
storage_account_type = "Standard_LRS"
}
} */