Skip to content

Commit cf04577

Browse files
authored
feat: create new env property to handle resource group (#183)
1 parent 1170168 commit cf04577

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

solutions/banking/main.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,17 @@ resource "ibm_cd_tekton_pipeline_property" "watsonx_assistant_id_pipeline_proper
245245
value = var.watson_assistant_instance_id
246246
}
247247

248+
# Update CD pipeline with Resource Group
249+
resource "ibm_cd_tekton_pipeline_property" "resource_group_name_pipeline_property_cd" {
250+
depends_on = [local.cd_instance]
251+
count = var.resource_group_name != null ? 1 : 0
252+
provider = ibm.ibm_resources
253+
name = "dev-resource-group"
254+
pipeline_id = var.ci_pipeline_id
255+
type = "text"
256+
value = var.resource_group_name
257+
}
258+
248259
# Update CI pipeline with app flavor
249260
resource "ibm_cd_tekton_pipeline_property" "application_flavor_pipeline_property_ci" {
250261
depends_on = [local.cd_instance]

0 commit comments

Comments
 (0)