Skip to content

Commit 9f0e382

Browse files
authored
fix: increase reserved-capacity create and delete timeouts and removed validation logic from the existing_mq_capacity_crn input (#159)
1 parent a2de78d commit 9f0e382

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

modules/mq-instance/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ resource "ibm_resource_instance" "mqcloud_capacity" {
2323
}
2424
service = "mqcloud"
2525
tags = var.tags
26+
27+
timeouts {
28+
create = "8h"
29+
delete = "2h"
30+
}
2631
}
2732

2833
resource "ibm_resource_instance" "mqcloud_deployment" {

modules/mq-instance/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ variable "existing_mq_capacity_crn" {
2727
type = string
2828
description = "The CRN of an existing capacity service instance, if not specifed, a new capacity plan will be created."
2929
default = null
30-
31-
validation {
32-
condition = (var.existing_mq_capacity_crn != null && var.subscription_id == null) || (var.existing_mq_capacity_crn == null && var.subscription_id != null)
33-
error_message = "Exactly one of 'existing_mq_capacity_crn' or 'subscription_id' is required."
34-
}
3530
}
3631

3732
variable "subscription_id" {

0 commit comments

Comments
 (0)