Skip to content

Commit 5c6c8c0

Browse files
fix confidential instance name
1 parent d4a9927 commit 5c6c8c0

File tree

7 files changed

+23
-1
lines changed

7 files changed

+23
-1
lines changed

5-app-infra/business_unit_1/development/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
| Name | Description |
1313
|------|-------------|
1414
| available\_zones | List of available zones in region |
15+
| confidential\_instances\_names | List of names for confidential compute instances |
1516
| confidential\_space\_project\_id | Project where confidential compute instance was created |
1617
| instances\_details | List of details for compute instances |
1718
| instances\_names | List of names for compute instances |

5-app-infra/business_unit_1/development/outputs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,9 @@ output "workload_identity_pool_id" {
6868

6969
}
7070

71+
output "confidential_instances_names" {
72+
description = "List of names for confidential compute instances"
73+
value = [for u in module.confidential_space.instances_details : u.name]
74+
sensitive = true
75+
}
76+

5-app-infra/business_unit_1/nonproduction/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
| Name | Description |
1313
|------|-------------|
1414
| available\_zones | List of available zones in region |
15+
| confidential\_instances\_names | List of names for confidential compute instances |
1516
| confidential\_space\_project\_id | Project where confidential compute instance was created |
1617
| instances\_details | List of details for compute instances |
1718
| instances\_names | List of names for compute instances |

5-app-infra/business_unit_1/nonproduction/outputs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,9 @@ output "workload_identity_pool_id" {
6868

6969
}
7070

71+
output "confidential_instances_names" {
72+
description = "List of names for confidential compute instances"
73+
value = [for u in module.confidential_space.instances_details : u.name]
74+
sensitive = true
75+
}
76+

5-app-infra/business_unit_1/production/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
| Name | Description |
1313
|------|-------------|
1414
| available\_zones | List of available zones in region |
15+
| confidential\_instances\_names | List of names for confidential compute instances |
1516
| confidential\_space\_project\_id | Project where confidential compute instance was created |
1617
| instances\_details | List of details for compute instances |
1718
| instances\_names | List of names for compute instances |

5-app-infra/business_unit_1/production/outputs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,9 @@ output "workload_identity_pool_id" {
6868

6969
}
7070

71+
output "confidential_instances_names" {
72+
description = "List of names for confidential compute instances"
73+
value = [for u in module.confidential_space.instances_details : u.name]
74+
sensitive = true
75+
}
76+

test/integration/app-infra/app_infra_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ func TestAppInfra(t *testing.T) {
8181
assert.Equal(machineType, instance.Get("machineType").String(), "should have machine_type f1-micro")
8282

8383
confidentialProjectID := appInfra.GetStringOutput("confidential_space_project_id")
84-
computeInstanceList := gcloud.Run(t, fmt.Sprintf("compute instances list --format=json --project %s --filter name=confidential-instance", confidentialProjectID))
84+
confidentialInstanceName := appInfra.GetStringOutput("confidential_instances_names")
85+
computeInstanceList := gcloud.Run(t, fmt.Sprintf("compute instances list --format=json --project %s --filter name=%s", confidentialProjectID, confidentialInstanceName))
8586
assert.Len(computeInstanceList.Array(), 1)
8687
computeInstance := computeInstanceList.Array()[0]
8788
confidentialInstanceConfig := computeInstance.Get("confidentialInstanceConfig")

0 commit comments

Comments
 (0)