Skip to content

Commit 2d83bfc

Browse files
authored
Merge pull request #145 from athiththan11/main-compute-image
Add support for Trusted Launch in Shared Image module
2 parents c6d86ff + 5db4a3b commit 2d83bfc

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

modules/azurerm/Compute-Image/compute_image.tf

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
# --------------------------------------------------------------------------------------
1111

1212
resource "azurerm_shared_image" "compute_image" {
13-
name = join("-", [var.shared_image_abbreviation, var.name])
14-
gallery_name = var.gallery_name
15-
resource_group_name = var.resource_group
16-
location = var.location
17-
os_type = var.shared_image_os_type
18-
hyper_v_generation = var.hyper_v_generation
13+
name = join("-", [var.shared_image_abbreviation, var.name])
14+
gallery_name = var.gallery_name
15+
resource_group_name = var.resource_group
16+
location = var.location
17+
os_type = var.shared_image_os_type
18+
hyper_v_generation = var.hyper_v_generation
19+
trusted_launch_supported = var.trusted_launch_supported
20+
trusted_launch_enabled = var.trusted_launch_enabled
1921

2022
identifier {
2123
publisher = var.shared_image_publisher

modules/azurerm/Compute-Image/variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,15 @@ variable "shared_image_abbreviation" {
6464
type = string
6565
default = "si"
6666
}
67+
68+
variable "trusted_launch_supported" {
69+
description = "Specifies whether Trusted Launch is supported for the Shared Image."
70+
type = bool
71+
default = null
72+
}
73+
74+
variable "trusted_launch_enabled" {
75+
description = "Specifies whether Trusted Launch is enabled for the Shared Image."
76+
type = bool
77+
default = null
78+
}

modules/azurerm/Firewall/output.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ output "firewall_public_ip_names" {
4040
}
4141

4242
output "firewall_public_ip_associations" {
43-
value = {for pip in azurerm_public_ip.firewall_public_ip : pip.name => pip.ip_address}
43+
value = { for pip in azurerm_public_ip.firewall_public_ip : pip.name => pip.ip_address }
4444
depends_on = [azurerm_public_ip.firewall_public_ip]
4545
}

modules/azurerm/Storage-Account-Static-Website-CDN/outputs.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,20 @@ output "storage_account_secondary_web_endpoint" {
4545

4646
output "cdn_profile_name" {
4747
depends_on = [azurerm_cdn_profile.cdn_profile]
48-
value = azurerm_cdn_profile.cdn_profile.name
48+
value = azurerm_cdn_profile.cdn_profile.name
4949
}
5050

5151
output "cdn_profile_id" {
5252
depends_on = [azurerm_cdn_profile.cdn_profile]
53-
value = azurerm_cdn_profile.cdn_profile.id
53+
value = azurerm_cdn_profile.cdn_profile.id
5454
}
5555

5656
output "cdn_endpoint_fqdn" {
5757
depends_on = [azurerm_cdn_endpoint.cdn_endpoint]
58-
value = azurerm_cdn_endpoint.cdn_endpoint.fqdn
58+
value = azurerm_cdn_endpoint.cdn_endpoint.fqdn
5959
}
6060

6161
output "cdn_endpoint_id" {
6262
depends_on = [azurerm_cdn_endpoint.cdn_endpoint]
63-
value = azurerm_cdn_endpoint.cdn_endpoint.id
63+
value = azurerm_cdn_endpoint.cdn_endpoint.id
6464
}

0 commit comments

Comments
 (0)