Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
rut31337 authored Nov 19, 2024
1 parent abc2599 commit 331a288
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
data "ibm_resource_group" "rhpds" {
data "ibm_resource_group" "rg" {
name = var.resource_group
}

data "ibm_is_vpc" "rhpds" {
data "ibm_is_vpc" "vpc" {
name = var.vpc_name
}

data "ibm_is_subnet" "rhpds" {
data "ibm_is_subnet" "subnet" {
name = var.subnet_name
}

Expand All @@ -19,24 +19,24 @@ resource "ibm_resource_instance" "cos_instance" {
service = "cloud-object-storage"
plan = "standard"
location = "global"
resource_group_id = data.ibm_resource_group.rhpds.id
resource_group_id = data.ibm_resource_group.rg.id
}

resource "ibm_container_vpc_cluster" "rhpds" {
resource "ibm_container_vpc_cluster" "cluster" {
name = var.cluster_name
vpc_id = data.ibm_is_vpc.rhpds.id
vpc_id = data.ibm_is_vpc.vpc.id
kube_version = var.cluster_version
flavor = var.cluster_flavor
worker_count = var.cluster_worker_count
resource_group_id = data.ibm_resource_group.rhpds.id
resource_group_id = data.ibm_resource_group.rg.id
cos_instance_crn = ibm_resource_instance.cos_instance.id
wait_till = "OneWorkerNodeReady"
zones {
subnet_id = data.ibm_is_subnet.rhpds.id
subnet_id = data.ibm_is_subnet.subnet.id
name = local.ZONE
}
}

data "ibm_container_cluster_config" "cluster_config" {
cluster_name_id = ibm_container_vpc_cluster.rhpds.id
cluster_name_id = ibm_container_vpc_cluster.cluster.id
}

0 comments on commit 331a288

Please sign in to comment.