Files
hunfabric/tests/modules/compute_vm/context-template.tfvars
Ludovico Magnocavallo a4eb4d24fd Compute VM module refactor (#3805)
* add ad for compute-vm refactor

* Exclue nic_type from validated fields, add split of main.tf and template.tf

* boot disk

* fix examples and fixtures

* attached disks

* fix further examples and module-level tests

* remove extra file

* fix mig examples

* finish refactoring variables

* align fast and other modules

* refactor(compute-vm): align examples and ADR with the newly implemented interface

This commit addresses the remaining references of the `instance_type` and `confidential_compute` parameters in the testing environment and updates the ADR.

* feat(compute-vm): add network_performance_config to instance and templates

This change implements the usage of the `network_performance_tier` variable we added earlier into the actual Terraform resources.

---------

Co-authored-by: Wiktor Niesiobędzki <wiktorn@google.com>
2026-03-26 11:31:40 +00:00

59 lines
1.2 KiB
HCL

attached_disks = {
data-0 = {}
}
context = {
addresses = {
ext-test-0 = "35.10.10.10"
int-test-0 = "10.0.0.10"
}
custom_roles = {
myrole_one = "organizations/366118655033/roles/myRoleOne"
}
iam_principals = {
mygroup = "group:test-group@example.com"
}
kms_keys = {
test = "projects/foo-prod-sec-core/locations/global/keyRings/prod-global-default/cryptoKeys/compute"
}
locations = {
ew8a = "europe-west8-a"
}
networks = {
test = "projects/foo-dev-net-spoke-0/global/networks/dev-spoke-0"
}
project_ids = {
test = "foo-test-0"
}
subnets = {
test = "projects/foo-dev-net-spoke-0/regions/europe-west1/subnetworks/gce"
}
tag_values = {
"test/one" = "tagValues/1234567890"
}
}
create_template = {}
encryption = {
encrypt_boot = true
kms_key_self_link = "$kms_keys:test"
}
iam = {
"$custom_roles:myrole_one" = [
"$iam_principals:mygroup"
]
}
name = "test"
network_interfaces = [{
network = "$networks:test"
subnetwork = "$subnets:test"
nat = true
addresses = {
external = "$addresses:ext-test-0"
internal = "$addresses:int-test-0"
}
}]
project_id = "$project_ids:test"
tag_bindings = {
foo = "$tag_values:test/one"
}
zone = "$locations:ew8a"