Skip to content

Commit

Permalink
fix: remove terraform version constraints from the agents DA variation (
Browse files Browse the repository at this point in the history
  • Loading branch information
terraform-ibm-modules-ops authored Sep 29, 2024
1 parent 54c0283 commit 0d019cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion solutions/agents/version.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
terraform {
required_version = ">= 1.3.0, <1.7.0"
required_version = ">= 1.3.0"

required_providers {
# Lock DA into an exact provider version - renovate automation will keep it updated
Expand Down
5 changes: 4 additions & 1 deletion tests/resources/existing-resources/agents/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ module "resource_group" {
##############################################################################

module "landing_zone" {
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone//patterns//roks//module?ref=v5.33.0"
source = "git::https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone//patterns//roks//module?ref=v6.0.3"
region = var.region
prefix = var.prefix
tags = var.resource_tags
add_atracker_route = false
enable_transit_gateway = false
# GHA runtime has no access to private
verify_cluster_network_readiness = false
use_ibm_cloud_private_api_endpoints = false
}

##############################################################################
Expand Down
6 changes: 3 additions & 3 deletions tests/resources/existing-resources/agents/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ output "cluster_data" {
}

output "workload_cluster_id" {
value = lookup([for cluster in module.landing_zone.cluster_data : cluster if strcontains(cluster.resource_group_name, "workload")][0], "id", "")
value = module.landing_zone.workload_cluster_id
description = "ID of the workload cluster."
}

output "workload_cluster_name" {
value = [for cluster_name in module.landing_zone.cluster_names : cluster_name if strcontains(cluster_name, "workload")][0]
value = module.landing_zone.workload_cluster_name
description = "Name of the workload cluster."
}

output "cluster_resource_group_id" {
value = lookup([for cluster in module.landing_zone.cluster_data : cluster if strcontains(cluster.resource_group_name, "workload")][0], "resource_group_id", "")
value = module.landing_zone.cluster_data["${var.prefix}-workload-cluster"].resource_group_id
description = "Resource group ID of the workload cluster."
}

0 comments on commit 0d019cc

Please sign in to comment.