Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/compute_instance/disk_snapshot/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module "instance_template" {

module "compute_instance" {
source = "terraform-google-modules/vm/google//modules/compute_instance"
version = "~> 13.0"
version = "~> 14.0"

project_id = var.project_id
region = var.region
Expand Down
2 changes: 1 addition & 1 deletion examples/compute_instance/simple/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module "instance_template" {

module "compute_instance" {
source = "terraform-google-modules/vm/google//modules/compute_instance"
version = "~> 13.0"
version = "~> 14.0"

project_id = var.project_id
region = var.region
Expand Down
2 changes: 1 addition & 1 deletion examples/confidential_computing/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module "instance_template" {

module "compute_instance" {
source = "terraform-google-modules/vm/google//modules/compute_instance"
version = "~> 13.0"
version = "~> 14.0"

project_id = var.project_id
region = var.region
Expand Down
3 changes: 2 additions & 1 deletion examples/confidential_computing_intel/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ resource "google_kms_crypto_key_iam_binding" "crypto_key" {

module "instance_template" {
source = "terraform-google-modules/vm/google//modules/instance_template"
version = "~> 13.0"

region = var.region
project_id = var.project_id
Expand All @@ -89,7 +90,7 @@ module "instance_template" {

module "compute_instance" {
source = "terraform-google-modules/vm/google//modules/compute_instance"
version = "~> 13.0"
version = "~> 14.0"

project_id = var.project_id
region = var.region
Expand Down
18 changes: 15 additions & 3 deletions modules/compute_instance/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,32 @@ spec:
description: Network to deploy to. Only one of network or subnetwork should be specified.
varType: string
defaultValue: ""
connections:
- source:
source: github.com/terraform-google-modules/terraform-google-network
version: "~> 18.0.0"
spec:
outputExpr: network_name
- name: subnetwork
description: Subnet to deploy to. Only one of network or subnetwork should be specified.
varType: string
defaultValue: ""
connections:
- source:
source: github.com/terraform-google-modules/terraform-google-network//modules/subnets
version: ~> 6.0
source: github.com/terraform-google-modules/terraform-google-network
version: ~> 18.0.0
Comment thread
krprabhat-eng marked this conversation as resolved.
spec:
outputExpr: subnets[0].self_link
outputExpr: subnets_self_links[0]
- name: subnetwork_project
description: The project that subnetwork belongs to
varType: string
defaultValue: ""
connections:
- source:
source: github.com/terraform-google-modules/terraform-google-network
version: "~> 18.0.0"
spec:
outputExpr: project_id
- name: hostname
description: Hostname of instances
varType: string
Expand Down
Loading