File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
infra/ibmcloud/terraform/k8s-power-conformance/modules/pvs_workspace Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,4 @@ variable "datacenter" {}
18
18
variable "pi_workspace_name" {}
19
19
variable "resource_group_id" {}
20
20
variable "image_name" {}
21
+ variable "tags" { default = [] }
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ resource "ibm_pi_workspace" "powervs_service_instance" {
18
18
pi_name = var. pi_workspace_name
19
19
pi_datacenter = var. datacenter
20
20
pi_resource_group_id = var. resource_group_id
21
+ pi_user_tags = var. tags
21
22
}
22
23
23
24
data "ibm_pi_catalog_images" "catalog_images" {
@@ -30,6 +31,11 @@ locals {
30
31
31
32
# Copy image from catalog if not in the project and present in catalog
32
33
resource "ibm_pi_image" "image" {
34
+ lifecycle {
35
+ ignore_changes = [
36
+ pi_image_id
37
+ ]
38
+ }
33
39
pi_image_id = local. catalog_image [0 ]. image_id
34
40
pi_cloud_instance_id = ibm_pi_workspace. powervs_service_instance . id
35
41
}
You can’t perform that action at this time.
0 commit comments